A Simple, Efficient and Non-Invasive Templating Engine for JavaScript.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
js
.gitattributes
.gitignore
LICENSE-INFO.txt
MIT-LICENSE.txt
README.md

README.md

#kruntch.js

A Simple, Efficient and Non-Invasive Templating Engine for JavaScript.

#Curent Stable Version

1.2.0

#Change Log

1.2.0

  • Fixed "empty" template processing for collections with 0 elements.
  • Added "Root" special view object reference when binding new view objects.
  • Added "Parents" special view object collection when binding new view objects.
  • Added "Family" special view object when binding new view objects.
  • Added "" template processing construct.

1.1.1

  • Added "empty" construct for collections which allows template authors to specify a sub-template to be applied in the event that the collection is empty.
  • Fixed a minor issue in the collection accesing function that prevented [#] from working under certain circumstances.
  • Fixed issue with the "to" parameter and TemplateIO.Write... must check for undefined or null before writing!
  • Implemented "set" (set innerHTML) for TemplateIO.Write rather than "append"... judgement call but probably closer to what most situations would require/expect.
  • Added minorHTMLDecode function to perform a limited HTML decode of all "code" values ({}, {{}}, where and condition clause values). This helps to support template containers (HTML5 template tag) that automatically encode textual contents.

1.1.0

  • Major re-write removing all DOM (document, window, etc.) constructs in an effort to make kruntch totally portable to node.js.
  • Template parsing was most affected as 1.0.0 was heavily relying on DOM to parse the template text into traversable nodes.
  • Token parsing (ala George Vaccaro) is now utilized to split the template text into Kruntch.js template contstrutcs and text.
  • For this Kruntch.js is now totally functional in node.js! The node.js module is: kruntch.node-1.1.0.js.

1.0.0

  • Initial version

#Browser compatibility

IE 7+, FF, Chrome, Mobile Safari, Mobile Chrome

#Contribute!

Current contributer list:

  • David Vaccaro
  • George Vaccaro

#Licence

See LICENSE-INFO.txt