-
Notifications
You must be signed in to change notification settings - Fork 201
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
Option to output just a single html import file containing all templates #1695
Comments
That sounds reasonable. |
yeah, this is what I want too. my 'index.html' file is generated programmatically, but it imports one (or two) polymer elements which also import other elements. |
I note the -h help for vulcanize : "vulcanize: Concatenate a set of Web Components into one file" One interpretation of that would not include any 'index.html', I'd say :) IMO, what it does now is more like "Pre-import web components into their top-level parent html document.' |
Would this change also involve passing html as a string to be processed? i.e if you use Flux/React your server code output html as a string, that you then want to feed to vulcanize and get back a string that you can then send as type html.
Or should I create a separate issue/improvement for that scenario? |
We also need functionality of importing single html file containing all components in it.
|
Any particular reason why this issue ended up abandoned/closed? Not having this feature limits Polymer's utility in a server-side templated application. I'm using Express with Handlebars to render our different views' HTML, and using Polymer elements as tags in that rendered HTML to allow us to spit out a page that features rich UI components. Vulcanize is not useful for that purpose, and I really don't like the idea of pulling in all those components individually... |
I need to use the web components programmatically. I don't want the output to be a stand alone html page. I want it to just contain all of the web components that I will need. This way, I can use an html import on the resulting file and then instantiate any of the contained web controls via javascript.
The text was updated successfully, but these errors were encountered: