imported-template
imported-template copied to clipboard
Custom element that lets you load template from external file into your document, and take full control over loaded <script>s and <link rel="import">s. Thanks to HTML Imports - caching, script executi...
Right now `imported-template` can load content from a url or import html provided as `content` property. It would be really nice to be able to import other templates like this:...
As HTML Imports are dying there is a new proposal for a spec being discussed https://github.com/w3c/webcomponents/issues/645 Hopefully, we will be able to adapt our solution to the new spec once...
"Don't misbehave" error never shows up in Starcounter apps, because it shows up only when there are 0 templates in the imported document. However, in case of a Starcounter app,...
see discussion at https://github.com/Juicy/imported-template/pull/56#issuecomment-390980670 ### Steps to reproduce 1. Go to https://github.com/Juicy/imported-template/blob/master/imported-template.html#L172 It hacks Polymer notification protocol to forward `partial, viewModel` even though we only use `model`. Removing them seems...
The source files have 3 TODOs. Maybe it's a good time to fix some of them or move them to separate issues?
Currently when another `` instance for same url is attached to DOM we create new `` element. Luckyli it does not hit the networking performance, as according to HTML Imports...
Currently once attached `` stamps imported content into DOM. We could apply Polymer's convention and does not stamp a thing, untill `.model` property gets attached, or if and attribute is...
So we could in fact nest imported partial into client template: ``` html Partial is already loaded ``` Which will produce same result as: ``` html Partial is already loaded...
It seems I implemented https://github.com/Juicy/imported-template/commit/f33a5df8988773a1ffb2588fc6e91b8a8bc7cfb4 incorrectly. It fires an event `stamped` once `link` is appended to the tree so far before content is actually stamped to the tree. I believe...
### Steps to reproduce 1. Create `imported-template` using `` ```html ``` 2. Attach a model `domBind.set('model', {foo: 'not changed'});` and import scopeless document: ```html {{model.foo}} ``` 3. Change `foo` property...