Helma logo
helma.org » Home > Stories > HopObject.renderSkinAsString()

HopObject.renderSkinAsString()

Renders a skin of a HopObject and returns the result as string.

Similar to renderSkin(), this function returns the result of the rendered skin as string instead of immediately writing it to the response object.

Syntax
HopObject.renderSkinAsString(String, paramObject)

Example
var str = root.renderSkinAsString("example", param);
res.write(str);


which is equivalent to

root.renderSkin("example", param);


... comment


Page last modified on 2002-07-16 13:52 by tobi