Description:
Simple and ultra-fast templating tool to generate HTML from JSON data. It works standalone or with dojo, DomAssistant, jQuery, Mootools, Prototype, Sizzle and Sly.
|
|
|
Template composition with PURE?
|
| |
Hi,
Coming from a Flex background, I'm just getting into dynamic client-
side rendering with JavaScript and I've just been reading this
article: [link]
Some chap mentioned PURE in the comments so thought I'd check it out.... more »
|
|
JSON Cache and PURE
|
| |
Amazing coming across PURE. In my app I'm planning on putting as many
items into JSON files and then deserializing them into JS objects to
form a cache. The items include things like glyphs (using SVG path
data) and strings for text and much more. As I have engineered I have
found more and more use for the division between the objects/js and... more »
|
|
Search Results rendering through pure
|
| |
Hi all,
I have the following search results json structure and need to render
a standard search results page with title, description etc :
Can this level of nesting be handled through pure directive? Can
someone post an example for iterating through each result and showing
a title, description for each search result? Thanks!... more »
|
|
Does purejs HTML-escape values
|
| |
Hi,
I am new to pure.js . When rendering with pure.js, i find that pure.js
does not HTML escape values. Is it the correct way, or am i missing
something?
code example
var tab_li_directive = {
'ul li':{
'tb<-tabList':{
'span':"tb.tabName',
'@id':function(a) {... more »
|
|
5. Dynamic table example
|
| |
Hi
Where is the PURE/Javascript for 5. Dynamic table in Demos? I can see
the HTML and data but since I am new to PURE, don't know how to use
that
Thanks
|
|
Memory leak issue
|
| |
Hi,
i have a problem with pure and IE. We create dynamically page and load
load of cards. The cards are templates.
function FillCardInColumn(goal, container) {
var template = goal.Template;
eval("var jsonDirectives = " + goal.TemplateDirective + ";");
var jqueryTemplate = $(template);... more »
|
|
Rendering two Json files data
|
| |
/*load_data.php*/
<?php
$last_msg_id=$_GET['last_msg_i d'];
$action=$_GET['action'];
if($action <> "get")
{
?>
<html xmlns="[link]">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Load Data while scrolling 9lessons tutorials</title>... more »
|
|
One row data over multiple TR's
|
| |
All, I have a row of data that needs to iterate over multiple tr's. Data: var data = { news:[ { headline:'HEAD A', story:'aaaaaa'}, { headline:'HEAD B', story:'bbbbbb'}, { headline:'HEAD C', story:'cccccc'} ] ...And the HTML: <table border="1"> <tbody> <tr class="line1"> <td class="headline"></td>... more »
|
|
Empty data
|
| |
Hi all!
I just receiving an empty reponse from code.
What I'm doing wrong???
<html>
<head>
<title>PURE Unobtrusive Rendering Engine</title>
<script src="libs/jquery.js"></script>
<script src="libs/pure.js"></script>
</head>
<body>
<div id="container">
<div>
<fieldset id="fscustomer">... more »
|
|
|