How is this problem usually solved without using sever-side scripting?

Posted by cyggi on Stack Overflow See other posts from Stack Overflow or by cyggi
Published on 2010-05-24T17:05:19Z Indexed on 2010/05/24 17:11 UTC
Read the original article Hit count: 153

Filed under:
|

Simple problem I have so far always solved via PHP:

You have a site with header, menu, footer and content field.

Header, menu and footer are usually the same for each page.

  • How do you, without PHP or any other server-side language, have the header, menu and footer data exist only in one file?

So that for example you don't have ten sites (like home.html, products.html, about.html, ..) all having a copy of the static header and menu in their html files. Now if you want to change the header you have to change ten files.

I hope I made my question clear enough, if not please leave a comment :)

© Stack Overflow or respective owner

Related posts about php

Related posts about html