Fork me on GitHub

Module ringo/skin

Functions

Class Skin

Instance Methods


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

Skin.prototype.render (context)

Parameters

context

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