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

Unified Diff: utils/tests/template/nestedview.tmpl

Issue 9728009: Template bug fixes and new features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undid css.status change Created 8 years, 9 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
« no previous file with comments | « utils/tests/template/name_entry_text.tmpl ('k') | utils/tests/template/productview_localname.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/template/nestedview.tmpl
diff --git a/utils/tests/template/nestedview.tmpl b/utils/tests/template/nestedview.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..15378c0359100645eef4475d85f95ca30b5c9193
--- /dev/null
+++ b/utils/tests/template/nestedview.tmpl
@@ -0,0 +1,27 @@
+template NestedView(Person person1, Person person2) {
+ <div>
+ <span var=a1>
+ <h1>
+ ${#with person1 p1}
+ <div>
+ <span>${p1.name}</span>
+ <span>-</span>
+ <span>${p1.age}</span>
+ <div style="background-color:yellow;">
+ ${#with person2 p2}
+ <div>
+ <span style="color:green;">${p2.age}</span>
+ <span>-</span>
+ <span style="color:green;">${p2.name}</span>
+ <div style="color:blue;font-weight:bold">${p1.name}=${p2.age}</div>
+ </div>
+ ${/with}
+ <div style="background-color:green; color: red;">${p1.name}</div>
+ </div>
+ </div>
+ ${/with}
+ </h1>
+ </span>
+ </div>
+}
+
« no previous file with comments | « utils/tests/template/name_entry_text.tmpl ('k') | utils/tests/template/productview_localname.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698