This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Home
PURE Unbobtrusive Rendering Engine
A simple and ultra-fast templating tool to generate HTML from JSON data
The representation (HTML) and the logic (JS) remain totally separated
The representation (HTML) and the logic (JS) remain totally separated
We started PURE for an internal project. As we found it was a quite new and refreshing way of building web pages, we decided to put it open source.
If you get data as JSON services and want to render your HTML on the browser, PURE will certainly help you.Some more information here…
Get started with some examples
By following some conventions on class names, PURE matches the HTML and the data automatically.
Get more control with Directives
If you want to achieve true unobtrusivity, or need full control over the transformation, directives are here for you.- What is a directive ?
- The <- notation: for iteration
- The ruby like #{ ... } notation to mix strings and variables
- The ‘context’ notation
- The + notation to append/prepend values
- Javascript functions as directives
- Call your template recursively
PURE Methods
| pure.autoRender | Transform your HTML from JSON data automatically |
| pure.render | Transform your HTML from JSON data with directives |
| pure.map | Apply directives to your HTML |
| pure.compile | Compile your HTML to a JS function |
PURE as a jQuery plugin
| jQuery.autoRender | Transform your HTML from JSON data automatically |
| jQuery.render | Transform your HTML from JSON data with directives |
| jQuery.mapDirective | Apply directives to your HTML |
| jQuery.compile | Compile your HTML to a JS function |
The jQuery plugin page.
PURE as a rendering engine for your JS framework
If you know well Dojo, YUI, ...
Please collaborate on this. Only 10 lines of codes are needed.
Have a look at the file pure.js and look how it was done for jQuery, DOMAssistant, Mootools, Prototype, Sizzle
All the libraries that have a selector functionality could work with PURE.
COPYRIGHT
Copyright© 2008 Michael Cvilic – BeeBole. All Rights ReservedPURE is an Open Source Software. You can use, redistribute and/or modify it under the terms of the MIT Licence.











