Helma Logo
main list history

Version 4 by hannes on 30. April 2009, 15:20

Version 3 by hannes on 30. April 2009, 12:28

1The <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
5The 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.
7In 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

Version 2 by hannes on 26. May 2008, 12:22

1coming soonThe <code>helma.skin</code> module provides skinning and templating functionality to Helma applications.. A basic Helma skin looks like this:
2
3  Hello <% name %>!
4
5The part between the <code><%</code> and <code>%></code> is called a Macro Tag in Helma.
6
7In 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.
8
9== Builtin Macros
10
11==== extends
12
13==== subskin
14
15==== render
16
17== Methods and Classes
18
19==== render(skin, context, scope)
20
21==== createSkin(skin, scope)
22
23==== Skin(mainskin, subskins, parentskin)
24
25==== Skin.render(context)
26
27==== Skin.renderSubskin(skinname, context)
28
29==== Skin.getSubskin(skinname)
30

Version 1 by hannes on 21. May 2008, 15:28

1coming soon...