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

jQuery.autoRender

This is the automatic rendering method of PURE.

$( target ).autoRender( context [ , directives, html ] )

Parameters:






context

Object
This is the JSON data we want to render on


directives (optional)

Object
In addition to the automatic mapping between HTML classes an JSON properties, you can set additional directives.
These are the commands to tell PURE how to link the JSON data and the HTML.
See more information about directive at What is a directive ?


html (optional)

DOM/jQuery
This is the HTML template we want to transform with the data.
If not provided, the $(target) will be used as the html to be transformed.

Output:


jQuery

This method replace the $(target) by the result of the transformation.
And returns the replaced jQuery object.

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