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

Side by Side Diff: chrome/third_party/jstemplate/tutorial_examples/03-environ.html

Issue 11971042: Move chrome\third_party\jstemplate to third_party\jstemplate since it's used from ui\. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head><title>Address Book Using Jstemplates</title>
3 <script src="../util.js" type="text/javascript"></script>
4 <script src="../jsevalcontext.js" type="text/javascript"></script>
5 <script src="../jstemplate.js" type="text/javascript"></script>
6 <script type="text/javascript">
7 function jsinit() {
8 var mydata = {dataProperty:'Nonny'};
9 var context = new JsEvalContext(mydata);
10 context.setVariable('declaredVar','Ho');
11 var template = document.getElementById('witha');
12 jstProcess(context, template);
13 }
14 </script>
15 <link rel="stylesheet" type="text/css" href="css/maps2.deb.css"/>
16 </head>
17 <body onload="jsinit()">
18
19 <div id="witha">
20 <div id="Hey" jscontent="this.parentNode.id + this.id + dataProperty +
21 $this.dataProperty + declaredVar"></div>
22 </div>
23
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698