To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a3e72ae6-c3af-45fa-9c1d-69df4d5a368b%40googlegroups.com.Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
The following code stopped working with the recent changes in Canary (native HTML Imports with Web Plaftorm features enabled - see https://groups.google.com/d/topic/polymer-dev/TfkQpBU3Nb4/discussion)
HTMLImports.importer.load(container, function() {
HTMLImports.parser.parse(container);
});
Any ideas how can I now parse a HTML Import from a string?
This puts inline “Hello World” import on screen. Now only works with Web Platform features flag disabled (Canary): http://puppetjs.github.io/x-html/examples/template_inline.html
Source: https://github.com/PuppetJs/x-html/blob/master/x-html.html
I know that polymer-project.org was using that internally for the menus (in app.js), but now it uses vulcanised <docs-menu> so I cannot get inspiration from there anymore.
Thanks!
On Wednesday, November 20, 2013 4:39:42 PM UTC+1, Marcin Warpechowski wrote:Also, please let me know if there is other recommended way to insert trusted HTML chunk from a variable. I think there isn't, though there were some threads on this group about how to achieve this calling some Polymer parsers from script, particularly:
On Wednesday, November 20, 2013 3:58:01 PM UTC+1, Marcin Warpechowski wrote:I am the creator of a <x-html> custom element. I use it in an experimental project, where I needed to dynamically load HTML templates into an app: https://github.com/PuppetJs/x-htmlI decided that it was useful to wrap the code that I needed to write as a custom element, because it is potentially useful in other projects.Comments and code reviews are very welcome.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a3e72ae6-c3af-45fa-9c1d-69df4d5a368b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CALzNm5r%3D8Lgawt577uPz2UQQW4h79ZYgxq80w7K9OdSKGM_-xQ%40mail.gmail.com.