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:
> - 
> https://groups.google.com/forum/#!searchin/polymer-dev/html/polymer-dev/1Mrug0go9yY/Hzdlw7MJYwMJ
> - 
> https://groups.google.com/forum/#!searchin/polymer-dev/html/polymer-dev/CezP6rWnLz0/kFzZ7qRgbDEJ
>
>
> 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-html
>>
>> I 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/a3e72ae6-c3af-45fa-9c1d-69df4d5a368b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to