How to create DRY HTML?

I have a small static website and there is a menu and footer on every page of this website.

What is the best way to make sure that changes to the menu and footer need to be done in only one place and allow me to easily refresh all my pages that consist of them.

I am looking for some simple template system that allows me to combine files together.

I was looking a bit for ruby ​​.erb files, but they seem too complicated for what I want to achieve, since I will have to set up the rails and allow the use of this web server.

+5
source share
6 answers

. HTML ( HTML) .

<!-- #include virtual="/footer.html" -->

. Debian, , Apache .

, , , , .

10 , , , SSI , .

+3

?

script ( PowerShell, , ), , . , , , , , . , , - , .

+1

Octopress. , Jekyll, . , , jekyll.

, , rsync.

+1

static site generator. : Python, Ruby, PHP, Haskell, Sh, Bash...

+1

I used WML ("Meta Language Website"; NB nothing to do with WML related to mobile and WAP!) On Debian for many years to maintain a consistent template header / sidebar / footer template for pages on my static ISP hosting.

+1
source

All Articles