Hi,

If you do not like to bother about importing and cloning documents, or 
would like to be more flexible on what to import, you can try one of our 
components:
https://github.com/Juicy/juicy-html - for stamping any HTML file
https://github.com/Juicy/imported-template - for dynamic importing 
(according to HTML Imports) templates 
Both support Polymer Tempalte Binding.

Thanks to them, instead of:

<link rel="import" href="./my-components/templates.html">

<template bind ref="overTemplate"></template>

You can write just:

<template is="imported-template" bind 
content="./my-components/templates.html"></template>

Best Regards,
Tomek

W dniu wtorek, 28 października 2014 18:21:22 UTC+1 użytkownik Антон 
Мирошниченко napisał:
>
> I want create template libraray in isolated file.
>
> ./my-components/templates.html
>
> <template id="overTemplate">
>     <div on-mouseover="{{mouseOverHandler}}">OVER</div></template>
> .....
>
> And connect this file in my polymer-element:
>
> <link rel="import" href="./my-components/templates.html">
>
> Then use this template:
>
> <template bind ref="overTemplate"></template>
>
> How to do it?
>

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/736d7f28-1ad9-4c29-ba49-9fa606480a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to