Geoffrey Litt
Geoffrey Litt

Reputation: 160

Is there a light web template system that compiles before deployment to static HTML?

I'm currently building a website using static HTML/CSS. I can put in a PHP backend if necessary, but I'd like to avoid this additional complexity if possible.

The site has about 10 different HTML pages, and any change to the navigation bar or other layout elements requires manually implementing the change on all the separate HTML documents.

Is there any simple solution where I can implement a layout template in HTML containing header and footer, and then have separate content files for each page, and compile this all to static HTML before deploying? I suppose I could roll my own in Python but it would be nice if there was a pre-existing solution.

Upvotes: 2

Views: 1252

Answers (2)

Geoffrey Litt
Geoffrey Litt

Reputation: 160

I also subsequently came across nanoc which is in Ruby, and seems like perhaps a more modern option.

Upvotes: 0

Quentin
Quentin

Reputation: 943605

Template-Toolkit includes the ttree utility which does that.

Upvotes: 2

Related Questions