Created
December 6, 2009 10:18
-
-
Save pure/250146 to your computer and use it in GitHub Desktop.
Auto-render simple assign
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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