DEV Community

Cover image for HTML Template Tag in Vanilla JavaScript and Vue

HTML Template Tag in Vanilla JavaScript and Vue

Dan Vega on January 26, 2019

For the past few months, I have been writing a ton of documentation, tutorials, and exercises around VueJS and Vanilla JavaScript. Just for some co...
Collapse
 
emgodev profile image
Michael

Great read! I love knowing the vanilla approach.

Collapse
 
markdalsaso profile image
Mark Dalsaso

Super well written Dan, thanks.

Collapse
 
sawalhah profile image
Mohammad Sawalhah

Great article, thank you.

Collapse
 
andreandyp profile image
André Michel Andy

Great post! Actually, you can use <template> tags with the full build of Vue (Including Vue via CDN like the traditional way)

Collapse
 
chanuim profile image
Dellil

Nice article! thx.

Collapse
 
therealdanvega profile image
Dan Vega

There is no easy way to include HTML in HTML at the moment. Here is a good article from CSS tricks that walks through some options.

css-tricks.com/the-simplest-ways-t...

Collapse
 
omarel profile image
Omar Elbaga

I'm pretty sure the template tag doesn't work in IE. I think you can use script/x block as it's replacement, however.