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

Unified Diff: chrome/third_party/jstemplate/tutorial_examples/01-quick.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/01-quick.html
===================================================================
--- chrome/third_party/jstemplate/tutorial_examples/01-quick.html (revision 177458)
+++ chrome/third_party/jstemplate/tutorial_examples/01-quick.html (working copy)
@@ -1,33 +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 favdata = {
- title: 'Favorite Things',
- favs: ['raindrops', 'whiskers', 'mittens']
- };
-
- function showData(data) {
- // This is the javascript code that processes the template:
- var input = new JsEvalContext(data);
- var output = document.getElementById('t1');
- jstProcess(input, output);
- }
- </script>
-</head>
-<body onload="showData(favdata)">
-
-<!--
-This is the template:
--->
-<div id="t1">
- <h1 jscontent="title"></h1>
- <ul><li jscontent="$this" jsselect="favs"></li></ul>
-</div>
-<p>
-<a href="#" onclick="favdata.favs.push('packages');showData(favdata);">Reprocess</a>
-</p>
-</body>
-</html>
« no previous file with comments | « chrome/third_party/jstemplate/jstemplate_test.js ('k') | chrome/third_party/jstemplate/tutorial_examples/02-gettpl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698