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

Unified Diff: utils/tests/template/test_nested.dart

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/run ('k') | utils/tests/template/top_searches.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/template/test_nested.dart
diff --git a/utils/tests/template/test_nested.dart b/utils/tests/template/test_nested.dart
new file mode 100644
index 0000000000000000000000000000000000000000..06f830cb18a8296854971a1a8c467279e5edc7dc
--- /dev/null
+++ b/utils/tests/template/test_nested.dart
@@ -0,0 +1,25 @@
+// Sample for #with templates:
+//
+// productview.tmpl
+// productview2.tmpl
+
+
+#import('dart:html');
+#source('nestedview.dart');
+
+class Person {
+ String name;
+ int age;
+
+ Person(this.name, this.age);
+}
+
+void main() {
+ // Simple template.
+ Person person1 = new Person("Aristotle - Bugger for the bottle", 52);
+ Person person2 = new Person("René Descartes - Drunken fart", 62);
+
+ NestedView view = new NestedView(person1, person2);
+ document.body.elements.add(view.root);
+}
+
« no previous file with comments | « utils/tests/template/run ('k') | utils/tests/template/top_searches.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698