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