3 ms·
Apache with server side includes (SSI) will allow you to quickly and easily template websites without adding new tools or processes. I find this to be a decent
by mrlemke 5y ago
Apache with server side includes (SSI) will allow you to quickly and easily template websites without adding new tools or processes. I find this to be a decent balance between a static site and DRY. I don't care for most static site generators since I prefer to write my site content in HTML as much as possible.
For example, your index.html may look like:
<!-- #include virtual="/top.html" -->
<h1>My Website</h1>
<p>A bunch of content</p>
<!-- #include virtual="/bottom.html" -->
top.html could be something like:
<html>
<head>
<title>My Website</title>
<!--other header info -->
</head>
<body>
And for bottom.html:
<footer>
<!-- footer stuff -->
</footer>
</body>
</html>