It infuriates me that the concept of composable web pages using small templates/components is not baked into the html spec and supported by browsers.
Every bit of code that we write in any programming language is made of composable bits which can be imported into other bits of code.
But we cannot do anything similar with html. every time any attempt at having composable component based html is made, it gets mired down in arguments, and we end up with Frankenstein monsters like Web Components, Shadow DOMS etc.
Web shouldn't be this hard. but the html governing bodies and the browsers have done a horrible of taking it forward.
Every bit of code that we write in any programming language is made of composable bits which can be imported into other bits of code.
But we cannot do anything similar with html. every time any attempt at having composable component based html is made, it gets mired down in arguments, and we end up with Frankenstein monsters like Web Components, Shadow DOMS etc.
Web shouldn't be this hard. but the html governing bodies and the browsers have done a horrible of taking it forward.