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

pure.render method

This is the basic rendering method of PURE.

pure.render( html, context, directives )

Parameters:





html

DOM
The HTML template we want to transform with the data


context

Object
The JSON data we want to render on


directives

Object
The commands to tell PURE how to link the JSON data and the HTML. See more information about directive at What is a directive ?

Output:

htmlString

A string with the HTML transformed is returned.

Last edited by pure, Tue Sep 16 11:51:03 -0700 2008
Home | Edit | New
Versions: