Files
sdk/utils/tests/template/test_with.dart
T
gram@google.com 58a016634c Update utils to new library syntax.
This doesn't include adding partofs; that will have to be done later.
Review URL: https://codereview.chromium.org//11358145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14693 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:42:40 +00:00

24 lines
386 B
Dart

// Sample for #with templates:
//
// productview.tmpl
// productview2.tmpl
import 'dart:html';
part 'productview.dart';
class Person {
String name;
int age;
Person(this.name, this.age);
}
void main() {
// Simple template.
Person person = new Person("Terry Lucas", 52);
ProductView view = new ProductView(person);
document.body.elements.add(view.root);
}