public
Description: PURE Unobtrusive Rendering Engine for HTML
Home | Edit | New

Unobtrusive...Really?

The unobtrusive way of using PURE

If you want to keep your HTML and your JS logic totally separated you need to set some directives and use the pure.render method to transform your HTML based on the data.

With the directives, you provide manually all the information needed to compile the template.

 

The half-obtrusive way of using PURE

autoRendering makes life easier if you are ready to accept some HTML class abuse.
Follow some conventions and PURE will match HTML classes with JSON properties automatically, considerably reducing the number of directives you have to set.

 

So choose the method you like.

Last edited by scottymac, Fri Sep 18 05:47:57 -0700 2009
Home | Edit | New
Versions: