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); |
+} |
+ |