## helma.Skin

    Object
       |
       +--helma.Skin

Instances of this class represent a Helma skin. In addition to the standard skin functionality this class allows creation of a skin based on a Base64 encoded source.
Defined in Skin.js

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Constructor Summary
`helma.Skin(<String> source, <Boolean> encFlag)` Constructs a new instance of helma.Skin

Methods Summary
`Boolean` | `containsMacro(<String> name, <String> handler)` Returns true if the skin contains a macro with the name and optional handler passed as argument.
`Object` | `render(<Object> param)` Renders the skin.
`String` | `renderAsString(<Object> param)` Returns the rendered skin.
`String` | `valueOf()` Returns the source of the skin as Base64 encoded string

Constructor Detail

### helma.Skin

    helma.Skin(<String> source, <Boolean> encFlag)

Constructs a new instance of helma.Skin

Parameters:

`source` - The source of the skin

`encFlag` - If true the source will be Base64-decoded.

Returns:

A newly created instance of helma.Skin

Method Detail

### containsMacro

    Boolean containsMacro(<String> name, <String> handler)

Returns true if the skin contains a macro with the name and optional handler passed as argument.

Parameters:

`name` - The name of the macro

`handler` - An optional macro handler name

Returns:

True if the skin contains this macro at least once, false otherwise.

### render

    Object render(<Object> param)

Renders the skin.

Parameters:

`param` - An optional parameter object to pass to the skin.

### renderAsString

    String renderAsString(<Object> param)

Returns the rendered skin.

Parameters:

`param` - An optional parameter object to pass to the skin.

### valueOf

    String valueOf()

Returns the source of the skin as Base64 encoded string

Returns:

The source of the skin as Base64 encoded string

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007