Re: [w3c/webcomponents] [imports] HTML Includes (<import src='header.html'/> in <body>) (#280)

@techtonik I have implemented a custom element, that uses HTML Imports to achieve what (I think) you need https://github.com/Juicy/imported-template

It uses HTML Import to load the document (Import nested HTML Imports/dependencies, executes a scripts, etc) then stamps a Document Fragment from it, to your wherever you put `<template is="imported-template">`.

I have just made an article on how it works http://starcounter.io/html-partialsincludes-webcomponents-way/

To sum up my thoughts on original issue, I would say: 

Having HTML Imports, Templates, and Custom Elements, we do not need a spec for what "HTML Includes" we just need a small convention.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/280#issuecomment-247880328

Received on Sunday, 18 September 2016 21:14:43 UTC