| 1 | The <code>helma.skin</code> <code>helma/skin</code> module provides skinning and templating functionality to Helma applications. A basic Helma For performance reasons, the skin looks like this:parser is implemented in Java. The helma/skin module consumes the output of the skin parser to construct a Skin object and provide various utility functions that operate on it. |
| 3 | === Hello <% name %>!Overview |
| 5 | The part Helma uses <code><%</code> and <code>%></code> as delimiters between the static and dynamic content. Dynamic content wrapped in <code><%</code> and <code>%></code> tags is called a Macro Tag in HelmaMacro. When a skin is rendered the caller provides a context object that is used to replace the macro tag with actual content. |
| 7 | In Helma NG,=== the skin parser is implemented in Java, while the skin rendering is implemented in JavaScript, the default implementation being the <code>helma.skin</code> module. Methods and Classes |
| 9 | ==== Builtin MacroscreateSkin |
| 11 | ==== extendsrender |
| 13 | ==== subskinSkin |
| 15 | ==== Skin.render |
| 17 | ==== Methods and ClassesSkin.renderSubskin |
| 19 | ==== render(skin, context, scope)Skin.getSubskin |
| 21 | ==== createSkin(skin, scope)Built-in Macros |
| 23 | ==== Skin(mainskin, subskins, parentskin)echo |
| 25 | ==== Skin.render(context)extends |
| 27 | ==== Skin.renderSubskin(skinname, context)for-in |
| 29 | ==== Skin.getSubskin(skinname)if |
| 30 | |
| 31 | ==== set |
| 32 | |
| 33 | ==== subskin |
| 34 | |
| 35 | ==== render |
| 36 | |
| 37 | === Standard Macros |
| 38 | |