-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is there no javascript file? #1707
Comments
Checkout how web components work. |
@Silom Polymer seems to be encouraging using the new HTML5 Imports to include Polymer. They are also using Bower as the package manager. Importing the polymer.html includes the 3 scripts to get polymer running (polymer.js, polymer-mini.js, polymer-micro.js). So at the moment, no easy way to use Browserify to require Polymer into your project. |
@birkir not very helpful, since I was asking about implementation and not feature set. @clintonjrobinson thanks for clearing things up for me. I think its odd to provide a javascript API interface with only giving you the global scope of Polymer, as a developer I rather like to choose how I implement a library. I need a alternative for that, the way it is right now I can not add it to my architecture without losing consistency. |
@Silom Not saying I agree or not, but as I understand Polymer is aiming to be more than just a UI library. It's a set of polyfills that fill in any gaps in HTML5 standard that the executing browser may not have implemented yet. So from Polymers perspective it should be global scope, because your browser should have all this stuff in the global scope anyways. |
Web components built with Polymer require HTML imports, because a Polymer element definition has both a script and an HTML component, and unlike legacy JS loaders, HTML Imports allows marshaling both script and markup together using a browser primitive that allows multi-threaded parsing of HTML. We would love to allow the |
@kevinpschaaf thanks for the reply, makes sense now. Maybe I can jump into Polymer better when I use this vulcanized tool. I will give it another shot. |
It feels odd to do this:
Is there a way to include a script instead, I would like to use Borwserify and require Polymer.
Or could someone enlighten me about how to use Polymer properly?
The text was updated successfully, but these errors were encountered: