Cool! Thanks! понедельник, 17 ноября 2014 г., 18:16:58 UTC+3 пользователь Tomek W написал: > > 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/4ea3650c-96f2-40f5-bb6e-5628e3b4db52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
