HTML page as template of an element

45 views
Skip to first unread message

jawwad...@gmail.com

unread,
Aug 1, 2016, 9:33:10 AM8/1/16
to Polymer
Hi,

Is it possible to refer some HTML page as Polymer element's template? I have seen a few examples but local DOM of the elements only have HTML markup. 

Thanks in advance. 

Daniel Llewellyn

unread,
Aug 31, 2016, 9:47:19 AM8/31/16
to jawwad...@gmail.com, Polymer
On Mon, 1 Aug 2016 at 14:33 <jawwad...@gmail.com> wrote:
Hi,

Is it possible to refer some HTML page as Polymer element's template? I have seen a few examples but local DOM of the elements only have HTML markup. 

I don't think it's clear what you're asking here. HTML is referenced by using

<link rel="import" href="your-element.html">

The referenced file may include Javascript and CSS as any other HTML file can using the standard <script>, <style> and <link rel="stylesheet"> patterns.

Tomek W

unread,
Sep 1, 2016, 9:24:37 AM9/1/16
to Polymer
Hi,

I'm not sure if it meets your requirements, but you can give it a try.

BR,
Tomek
Reply all
Reply to author
Forward
0 new messages