3 ms·
It's technically not static content, but consider Server Side Includes (https://en.wikipedia.org/wiki/Server_Side_Includes https://en.wikipedia.org/wiki/Server_
by TazeTSchnitzel 7y ago
It's technically not static content, but consider Server Side Includes (https://en.wikipedia.org/wiki/Server_Side_Includes https://en.wikipedia.org/wiki/Server_Side_Includes) for when you want to share just a header and footer.
- baroffoos 7y agoWouldn't it be simpler to just have a static site generator. Combining templates is what they do best and then it keeps the server side very simple, its just static files you can dump on any web host.
- combatentropy 7y agoServer Side Includes are unfairly neglected simply due to age. Another way, seldom mentioned, is JavaScript. Just include some script tag, which inserts the HTML at the top, bottom, or wherever. An advantage it has over Server Side Includes is that it is cached.
- roywiggins 7y agoOr abuse framesets! They're deprecated now, but still...
- ricardo81 7y agoOne disadvantage as that many search engines and other programmatic means won't be able to read the Javascript.