Module ringo/skin
Functions
- createSkin(resourceOrString)
- render(skinOrResource, context)
Skin (mainSkin, subSkins)
The Skin object. This takes an array of skin parts (literal strings and MacroTags) and a dictionary of subskins.
Parameters
| mainSkin | an array of skin parts: string literals and macro tags | |
| subSkins | a dictionary of named skin components |
createSkin (resourceOrString)
Parse a skin from a resource.
Parameters
| resourceOrString | the skin resource or string |
render (skinOrResource, context)
Parse a skin from a resource and render it using the given context.
Parameters
| skinOrResource | a skin object, ringojs resource, or file name | |
| context | the skin render context |
