| Index: utils/tests/template/test_list.dart
|
| diff --git a/utils/tests/template/test_list.dart b/utils/tests/template/test_list.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..98f0970c8997cdcf4d8ae47a948de1b87e973572
|
| --- /dev/null
|
| +++ b/utils/tests/template/test_list.dart
|
| @@ -0,0 +1,25 @@
|
| +// Sample for #each templates:
|
| +//
|
| +// applications.tmpl
|
| +
|
| +#import('dart:html');
|
| +#source('applications.dart');
|
| +
|
| +class Product {
|
| + String name;
|
| + int users;
|
| +
|
| + Product(this.name, this.users);
|
| +}
|
| +
|
| +void main() {
|
| + List<Product> products = [];
|
| + products.add(new Product("Gmail", 75000000));
|
| + products.add(new Product("Talk", 5000000));
|
| + products.add(new Product("iGoogle", 2000000));
|
| + products.add(new Product("Dart", 2000));
|
| +
|
| + var form = new Applications(products);
|
| +
|
| + document.body.elements.add(form.root);
|
| +}
|
|
|