Skip to content

michaelchance/isomagic-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published