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

Unified Diff: chrome/third_party/jstemplate/tutorial_examples/06-jsdisplay.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 side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/jstemplate/tutorial_examples/06-jsdisplay.html
===================================================================
--- chrome/third_party/jstemplate/tutorial_examples/06-jsdisplay.html (revision 177458)
+++ chrome/third_party/jstemplate/tutorial_examples/06-jsdisplay.html (working copy)
@@ -1,40 +0,0 @@
-<html>
-<head><title>Jstemplates: Quick example</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">
- var tplData = {username:"Joe User",
- addresses:[
- {location:"111 8th Av.", label:"NYC front door"},
- {location:"76 9th Av.", label:"NYC back door"},
- {location:"Mountain View", label:"Mothership"}
- ]};
-
- function showData() {
- // This is the javascript code that processes the template:
- var input = new JsEvalContext(tplData);
- var output = document.getElementById('tpl');
- jstProcess(input, output);
- }
- </script>
-</head>
-<body onload="showData()">
-
-<!--
-This is the template:
--->
-<div id="tpl">
-<h1>
- <span jsselect="username" jscontent="$this">User de Fault</span>'s
- Address Book
-</h1>
-<span jsdisplay="addresses.length==0">Address book is empty.</span>
-<table cellpadding="5" jsdisplay="addresses.length">
-<tr><td><h2>Location:</h2></td><td><h2>Label:</h2></td></tr>
-<tr jsselect="addresses"><td jscontent="location"></td><td jscontent="label"></td></tr>
-</table>
-</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698