I've thinking about this a lot lately. Why does HTML5 not really let you load HTML into your document to break up your HTML files?
It has support for nearly every other asset (images, videos, audio).
Yes we have iframes
, embeds
, and objects
but they are sandboxed and don't follow the flow of the rest of the document.
I was thinking of something like:
<h2>My wonderful application</h2>
<include src = "leftPane.html" type = "text/html" />
<include src = "main.html" type = "text/html" />
<include src = "footer.html" type = "text/html" />
I would love for someone to explain this to me. In nearly every web application we make, we use some form of templating to break up our HTML, so why does HTML5 not just include it?
I'd appreciate your (flameless) thoughts.
Matt