Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (54 sloc) 1006 Bytes
<title>PURE Unobtrusive Rendering Engine</title>
<script src="../libs/jquery.js"></script>
<script src="../libs/pure.js"></script>
var cols = ['name', 'food', 'legs', 'button'],
data = {animals:[
{name:'bird', food:'seed', legs:2},
{name:'cat', food:'mouse, bird', legs:4},
{name:'dog', food:'bone', legs:4},
{name:'mouse', food:'cheese', legs:4}
colsDir = {
dataDir = {
'tbody tr':{
'td.button':'<button onclick="alert(#{animal.legs})">View</button>'
$('table').render(cols, colsDir).render(data, dataDir);
Jump to Line
Something went wrong with that request. Please try again.