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

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

Issue 9695048: Template parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Siggi's comments 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/test_simple.dart ('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_with.dart
diff --git a/utils/tests/template/test_with.dart b/utils/tests/template/test_with.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1943331d9443e89ef95d8c32d9a19c4d2d8ab6b4
--- /dev/null
+++ b/utils/tests/template/test_with.dart
@@ -0,0 +1,23 @@
+// Sample for #with templates:
+//
+// productview.tmpl
+// productview2.tmpl
+
+
+#import('dart:html');
+#source('productview.dart');
+
+class Person {
+ String name;
+ int age;
+
+ Person(this.name, this.age);
+}
+
+void main() {
+ // Simple template.
+ Person person = new Person("Terry Lucas", 52);
+ ProductView view = new ProductView(person);
+ document.body.elements.add(view.root);
+}
+
« no previous file with comments | « utils/tests/template/test_simple.dart ('k') | utils/tests/template/top_searches.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698