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

Side by Side Diff: utils/tests/template/test_list.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/template/test_complex2.dart ('k') | utils/tests/template/test_simple.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Sample for #each templates:
2 //
3 // applications.tmpl
4
5 #import('dart:html');
6 #source('applications.dart');
7
8 class Product {
9 String name;
10 int users;
11
12 Product(this.name, this.users);
13 }
14
15 void main() {
16 List<Product> products = [];
17 products.add(new Product("Gmail", 75000000));
18 products.add(new Product("Talk", 5000000));
19 products.add(new Product("iGoogle", 2000000));
20 products.add(new Product("Dart", 2000));
21
22 var form = new Applications(products);
23
24 document.body.elements.add(form.root);
25 }
OLDNEW
« no previous file with comments | « utils/tests/template/test_complex2.dart ('k') | utils/tests/template/test_simple.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698