Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: chrome/third_party/jstemplate/tutorial_examples/09-jsvalues.html

Issue 119384: Update JSTemplate to the latest version from Google Code (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/jstemplate/tutorial_examples/09-jsvalues.html
===================================================================
--- chrome/third_party/jstemplate/tutorial_examples/09-jsvalues.html (revision 0)
+++ chrome/third_party/jstemplate/tutorial_examples/09-jsvalues.html (revision 0)
@@ -0,0 +1,23 @@
+<html>
+<head><title>Address Book Using Jstemplates</title>
+ <script src="../util.js" type="text/javascript"></script>
+ <script src="../jsevalcontext.js" type="text/javascript"></script>
+ <script src="../jstemplate.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ function jsinit() {
+ var mydata = {end: 'Bar'};
+ var context = new JsEvalContext(mydata);
+ var template = document.getElementById('out');
+ jstProcess(context, template);
+ }
+ </script>
+ <link rel="stylesheet" type="text/css" href="css/maps2.deb.css"/>
+</head>
+<body onload="jsinit()">
+
+<div id="out">
+<div id="Food" jsvalues=".id:'Joe';.style.fontSize:'30pt'" jscontent="this.parentNode.id + this.id + $this.end"></div>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698