3 ms·
If only standard HTML would support templating we could get rid of 80% of the tooling, maybe 100%. In fact, if I had to choose between two super simple tech sta
by miki_tyler 5y ago
If only standard HTML would support templating we could get rid of 80% of the tooling, maybe 100%. In fact, if I had to choose between two super simple tech stacks for static sites:
1) HTML + CSS + JS
2) HTML + CSS + Templating system
I would pick 2) for sure.
This is basically why we are building kit55 (https://stack55.com https://stack55.com).
- vbezhenar 5y agoHTML supports some mechanisms to implement templates: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template https://developer.mozilla.org/en-US/docs/Web/HTML/Element/te...
- miki_tyler 5y agoThere is indeed a <template> tag in HTML but it only works inside the current loaded page, i.e. to render rows inside a table. You cannot use it to include a header or a banner. In addition, the the tag relies on JS to be rendered.