Assemble static site from templates? (don't want to reinvent the wheel)

Posted by raindog308 on Pro Webmasters See other posts from Pro Webmasters or by raindog308
Published on 2013-03-06T16:28:28Z Indexed on 2013/06/24 16:38 UTC
Read the original article Hit count: 213

Filed under:

I have a site that is 100% static content (no php, just some javascript). There's several "blocks" like the header, menu, footer, etc. that are the same on each page.

Rather than do a lot of copy/pasting, I was thinking of some kind of template system where I could run a CLI command (in php, perl, python, shell, whatever) and have it replace all the block tags with the actual block text.

I did see some answers in this question, but those seem oriented towards "we provide the style and layout, you provide the text". In my case, I have everything as far as layout, css, etc. - just want to do a glorified sed.

Before I invent the wheel, I was wondering if there was a tool out there already.

© Pro Webmasters or respective owner

Related posts about html