Skip to content

Instantly share code, notes, and snippets.

@pure
Created September 16, 2011 21:51
Show Gist options
  • Save pure/1223255 to your computer and use it in GitHub Desktop.
Save pure/1223255 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://github.com/pure/pure/raw/master/libs/pure.js"></script>
</head>
<body>
<div id="root">
<div class="toLoop"></div>
</div>
<script>
var data = {
numbers:[1, 2, 3]
},
dir = {
'div.toLoop':{
'number<-numbers':{
'.':'number'
}
}
};
$('#root').render(data, dir);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment