--
You received this message because you are subscribed to the Google Groups "Dart Web Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.
.... The polymer-build process will also recognize this pattern.Cheers,Siggi
bash-3.2$ find . | grep -v packages../pkga./pkga/example./pkga/example/an_example./pkga/example/an_example/example.html./pkga/lib./pkga/lib/components./pkga/lib/components/a.dart./pkga/lib/components/a.html./pkga/pubspec.lock./pkga/pubspec.yaml./pkgb./pkgb/lib./pkgb/lib/components./pkgb/lib/components/b.dart./pkgb/lib/components/b.html./pkgb/pubspec.lock./pkgb/pubspec.yaml
<!DOCTYPE html><link rel="import" href="../../packages/pkgb/lib/components/b.html"><polymer-element name="foo-a"><template>I am an awhich has a b<foo-b></foo-b></template><script type="application/dart" src="a.dart"></script></polymer-element>
library a;import 'dart:html';import 'package:polymer/polymer.dart';
@CustomTag("foo-a")class A extends PolymerElement {A.created() : super.created() {print("Created A");}}
<!DOCTYPE html><html><head><link rel="import" href="../../packages/pkgb/components/b.html"><link rel="import" href="../../packages/pkga/components/a.html"><script type="application/dart">export 'package:polymer/init.dart';</script><script src="packages/browser/dart.js"></script></head><body>First is a B<foo-b style="display: block; border: 3 double; background: beige"></foo-b>Then is an A<foo-a style="display: block; border: 3 double; background: beige"></foo-a></body></html>
Failed to load resource: the server responded with a status of 404 (Not Found)
Created B
Created B
Created A
Ok - sorry I'm struggling with this - but I'm trying to use one component from a different component library. Here is a setup:bash-3.2$ find . | grep -v packages../pkga./pkga/example./pkga/example/an_example./pkga/example/an_example/example.html
transformers:- polymer:entry_points: web/an_example/example.html
./pkga/lib./pkga/lib/components./pkga/lib/components/a.dart./pkga/lib/components/a.html./pkga/pubspec.lock./pkga/pubspec.yaml./pkgb./pkgb/lib./pkgb/lib/components./pkgb/lib/components/b.dart./pkgb/lib/components/b.html./pkgb/pubspec.lock./pkgb/pubspec.yamlpkga has a component foo-a<!DOCTYPE html><link rel="import" href="../../packages/pkgb/lib/components/b.html">
<polymer-element name="foo-a"><template>I am an awhich has a b<foo-b></foo-b></template><script type="application/dart" src="a.dart"></script></polymer-element>with backendlibrary a;import 'dart:html';import 'package:polymer/polymer.dart';@CustomTag("foo-a")class A extends PolymerElement {A.created() : super.created() {print("Created A");}}pkgb has similar, but 'b' instead of 'a'. So, a uses b. The import in green above is specified correctly relative to where a.html is, but this does not seem to work. When I run the example.html, which looks like the following:<!DOCTYPE html><html><head><link rel="import" href="../../packages/pkgb/components/b.html"><link rel="import" href="../../packages/pkga/components/a.html">