| OLD | NEW |
| 1 // Sample for complex templates: | 1 // Sample for complex templates: |
| 2 // | 2 // |
| 3 // top_searches_css.tmpl | 3 // top_searches_css.tmpl |
| 4 | 4 |
| 5 #import('dart:html'); | 5 import 'dart:html'; |
| 6 #source('complex_datamodel.dart'); | 6 part 'complex_datamodel.dart'; |
| 7 #source('top_searches.dart'); | 7 part 'top_searches.dart'; |
| 8 | 8 |
| 9 void main() { | 9 void main() { |
| 10 List<Person> persons = dataModel; | 10 List<Person> persons = dataModel; |
| 11 | 11 |
| 12 Person whichPerson = persons[2]; | 12 Person whichPerson = persons[2]; |
| 13 var searchesView = new TopSearches(whichPerson, whichPerson.searches); | 13 var searchesView = new TopSearches(whichPerson, whichPerson.searches); |
| 14 | 14 |
| 15 document.body.elements.add(searchesView.root); | 15 document.body.elements.add(searchesView.root); |
| 16 } | 16 } |
| 17 | 17 |
| OLD | NEW |