0.0.6 • Published 9 years ago

isomagic-template v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

IsoMagic-template

An IsoMagic extension that provides simple templating capabilites for tlc. Essentially an IsoMagic style clone of tlc-template

Config

  • templateFiles (Array) list of files to be loaded and parsed as templates.

Template File Structure

  • 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.

Middleware

none included

TLC Formats

  • 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 by apply --append;
0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago