Best way to use the same HTML on static web-pages

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-05-25T15:32:51Z Indexed on 2010/05/25 15:41 UTC
Read the original article Hit count: 162

Filed under:
|

If you use dynamic pages like JSP or asp.net, you can have your page template included, and then content added. But what if you have no server-side component and all pages are just HTML/JS? You can of course create a template then copy it for each page, but then if you want to change something you risk having to modify every page, even if you put most styling in CSS properly.

Are there any non-awful ways to do this? I could see that an iframe could be used to load the content into the central page but that sounds nasty. Does HTML provide any way to include a base file and add to it?

© Stack Overflow or respective owner

Related posts about html

Related posts about website