stealjs / rfcs

A place to discuss higher level changes to Steal
MIT License
2 stars 0 forks source link

Proposal: Loading importing of WebComponents #17

Open matthewp opened 6 years ago

matthewp commented 6 years ago

@frank-dspeed commented on Fri Oct 20 2017

Its Time to make Steal Load WebComponents


@matthewp commented on Fri Oct 20 2017

Web components are written in JavaScript and steal has no problem loading JavaScript.


@frank-dspeed commented on Fri Oct 20 2017

@matthewp nope my frind reopen that WebComponents are written in html and get loaded via link import tag


@matthewp commented on Fri Oct 20 2017

Oh, sorry, I misunderstood. I'll reopen and then move to stealjs/rfcs as that's the place for plugin requests.

matthewp commented 6 years ago

Probably what should be done here, imo, is a plugin that will inject HTML into the page, so if you have an HTML file with a <template> you can import it and then use querySelector and whatnot to use it.

frank-dspeed commented 6 years ago

@matthewp i think thats a start yes it should simply be able to handle component.html!html

frank-dspeed commented 6 years ago

@matthewp for example to wrap a steal bundle as component i at present render it to template then attach template via init script to dom then in template load steal