Fields and methods of the helma.Skin class.
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/helma/Skin.js')
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/helma/Skin.js')
Constructs a new instance of helma.Skin
parameters
String | source | The source of the skin |
Boolean | encFlag | If true the source will be Base64-decoded. |
methods
- valueOf()
- render(param)
- renderAsString(param)
- containsMacro(name, handler)
Methods
Returns the source of the skin as Base64 encoded string
returns
The source of the skin as Base64 encoded string |
Renders the skin.
parameters
Object | param | An optional parameter object to pass to the skin. |
Returns the rendered skin.
parameters
Object | param | An optional parameter object to pass to the skin. |
Returns true if the skin contains a macro with the name
and optional handler passed as argument.
parameters
String | name | The name of the macro |
String | handler | An optional macro handler name |
returns
True if the skin contains this macro at least once, false otherwise. |