PURE with your JS library
PURE integrates, out of the box, with the following JS libraries:
- jQuery - sample page
- prototype.js - sample page
- Mootools
- domassistant
- dojo
- Sizzle
- Sly
Description of the jQuery Methods added by pure.js
jQuery( ... ).render
jQuery( ... ).render( data, directives )
Input:
|
Output: the input DOM node html is replaced with the result of the transformation. |
jQuery( ... ).autoRender
jQuery( ... ).autoRender( data [, directives] )
Input:
|
Output: A jQuery object is returned (that can be chained), and the node selected by the $( ... ) is replaced with the result of the transformation. |
jQuery( ... ).compile
compile converts an HTML node to a JS function using a directive.
Or as with autoRender, with data and map automatically CLASS attributes.
jQuery( html ).compile( directives [, data] )
Input:
|
Output: function: This method compiles the HTML template to returns a JS function. This returned function can be executed on the JSON data we want to render.
|

