Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This library exports all of the commonly used functions and types for | 6 * Custom HTML tags, data binding, and templates for building |
| 7 * building UI's. | 7 * structured, encapsulated, client-side web apps. |
| 8 * | 8 * |
| 9 * See this article for more information: | 9 * Polymer.dart, the next evolution of Web UI, |
| 10 * <http://www.dartlang.org/articles/dart-web-components/>. | 10 * is an in-progress Dart port of the |
| 11 * [Polymer project](http://www.polymer-project.org/). | |
| 12 * Polymer.dart compiles to JavaScript and runs across the modern web. | |
| 13 * | |
| 14 * To use polymer.dart in your application, | |
| 15 * add a dependency in the app's pubspec.yaml file: | |
| 16 * | |
| 17 * dependencies: | |
| 18 * polymer: any | |
|
Jennifer Messerly
2013/09/04 22:09:35
should we add a suggestion to get the current majo
mem
2013/09/09 18:40:17
Done.
| |
| 19 * | |
| 20 * Then import the library into your application: | |
| 21 * | |
| 22 * import 'package:polymer/polymer.dart'; | |
| 23 * | |
| 24 * ## Other resources | |
| 25 * | |
| 26 * * Refer to the | |
| 27 * [Polymer.dart](http://www.dartlang.org/polymer-dart/) | |
| 28 * home page for example code, project status, and | |
| 29 * information about how to get started using Polymer.dart in your apps. | |
| 30 * | |
| 31 * * Check out the source code at the pub repository: | |
| 32 * [polymer.dart package](http://pub.dartlang.org/packages/polymer). | |
| 33 * | |
| 34 * * If you were using Web UI in your apps, | |
| 35 * [Upgrading to Polymer.dart] | |
| 36 * (http://www.dartlang.org/polymer-dart/upgrading-to-polymer-from-web-ui.html) | |
| 37 * contains some tips to help you convert. | |
| 11 */ | 38 */ |
| 12 library polymer; | 39 library polymer; |
| 13 | 40 |
| 14 import 'dart:async'; | 41 import 'dart:async'; |
| 15 import 'dart:mirrors'; | 42 import 'dart:mirrors'; |
| 16 | 43 |
| 17 import 'package:mdv/mdv.dart' as mdv; | 44 import 'package:mdv/mdv.dart' as mdv; |
| 18 import 'package:observe/src/microtask.dart'; | 45 import 'package:observe/src/microtask.dart'; |
| 19 import 'package:path/path.dart' as path; | 46 import 'package:path/path.dart' as path; |
| 20 import 'polymer_element.dart' show registerPolymerElement; | 47 import 'polymer_element.dart' show registerPolymerElement; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 print("warning: methods marked with @initMethod should take no " | 165 print("warning: methods marked with @initMethod should take no " |
| 139 "arguments, ${method.simpleName} expects some."); | 166 "arguments, ${method.simpleName} expects some."); |
| 140 return; | 167 return; |
| 141 } | 168 } |
| 142 obj.invoke(method.simpleName, const []); | 169 obj.invoke(method.simpleName, const []); |
| 143 } | 170 } |
| 144 | 171 |
| 145 class _InitMethodAnnotation { | 172 class _InitMethodAnnotation { |
| 146 const _InitMethodAnnotation(); | 173 const _InitMethodAnnotation(); |
| 147 } | 174 } |
| OLD | NEW |