Helma Logo
main list history
previous version  overview  next version

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

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.

===  Hello <% name %>!Overview

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.

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

==== Builtin MacroscreateSkin

==== extendsrender

==== subskinSkin

==== Skin.render

==== Methods and ClassesSkin.renderSubskin

==== render(skin, context, scope)Skin.getSubskin

==== createSkin(skin, scope)Built-in Macros

==== Skin(mainskin, subskins, parentskin)echo

==== Skin.render(context)extends

==== Skin.renderSubskin(skinname, context)for-in

==== Skin.getSubskin(skinname)if

==== set

==== subskin

==== render

=== Standard Macros