Tutorials

Each of the links below will drive you to a simple HTML page with an example.
To see how the example works, view the page source or fire your javascript debugger.

 

Automatic rendering

PURE will map the JSON and the HTML automatically, using classes.
This is the autoRender method.
By somehow abusing the class attribute, this method is a little obtrusive.

 

Render with directives

In this mode, the HTML and the logic are kept strictly separated.
All the actions we want PURE to do, have to be described through directives.