An IsoMagic extension that provides simple templating capabilites for tlc. Essentially an IsoMagic style clone of tlc-template
templateFiles(Array) list of files to be loaded and parsed as templates.
- template files are written in html without an , , or tag
- All elements with an id attribute are parsed and loaded as a template. The id is removed, and becomes their templateid
- You cannot have nested templates
- We use the id attribute as a key, and remove it, so that no matter where a template is used in the DOM, it will never create a duplicate id.
none included
template#translate--templateid: required--data: optional, default {}. Translates the appropriate template with the given data, and stores it in the focus variable. Typically this would be followed byapply --append;