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

Side by Side Diff: utils/tests/template/test_nested.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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_list.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
1 // Sample for #with templates: 1 // Sample for #with templates:
2 // 2 //
3 // productview.tmpl 3 // productview.tmpl
4 // productview2.tmpl 4 // productview2.tmpl
5 5
6 6
7 #import('dart:html'); 7 import 'dart:html';
8 #source('nestedview.dart'); 8 part 'nestedview.dart';
9 9
10 class Person { 10 class Person {
11 String name; 11 String name;
12 int age; 12 int age;
13 13
14 Person(this.name, this.age); 14 Person(this.name, this.age);
15 } 15 }
16 16
17 void main() { 17 void main() {
18 // Simple template. 18 // Simple template.
19 Person person1 = new Person("Aristotle - Bugger for the bottle", 52); 19 Person person1 = new Person("Aristotle - Bugger for the bottle", 52);
20 Person person2 = new Person("René Descartes - Drunken fart", 62); 20 Person person2 = new Person("René Descartes - Drunken fart", 62);
21 21
22 NestedView view = new NestedView(person1, person2); 22 NestedView view = new NestedView(person1, person2);
23 document.body.elements.add(view.root); 23 document.body.elements.add(view.root);
24 } 24 }
25 25
OLDNEW
« no previous file with comments | « utils/tests/template/test_list.dart ('k') | utils/tests/template/test_simple.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698