SKITSANOS FOR RIA

Skitsanos

Wednesday, October 01, 2008

PURE JavaScript Template

PURE, the JavaScript template engine, has had a major new release which includes:

  • Auto-rendering: a new PURE method takes your HTML and your JSON data and merges them automatically. The class attribute is used to map the HTML and the data. (Read more about autoRender and its jQuery version on our Wiki).
  • Functions as directive are called by reference and not serialized
  • Change the id of the template root node (as any other attribute)
  • Better string value handling
  • Use of named properties in iteration “obj.prop” as well as “obj['name']“

For a feel of the library check out the documentation which takes you from the simplest render:

$('#hello').autoRender({ "who": "John Doe" });}

No comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads