Skip to content

Instantly share code, notes, and snippets.

@pure
Created December 6, 2009 10:18
Show Gist options
  • Save pure/250146 to your computer and use it in GitHub Desktop.
Save pure/250146 to your computer and use it in GitHub Desktop.
Auto-render simple assign
<html>
<head>
<title>PURE Unobtrusive Rendering Engine</title>
<script src="../libs/jquery.js"></script>
<script src="../libs/pure.js"></script>
</head>
<body>
<!-- the HTML template -->
Hello <a class="who" href="#"></a>
<script>
// the JSON data we want to render
var data = {'who':'BeeBole!'};
// run the rendering
$('a').autoRender(data);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment