Turnplate is a very basic templating system for static websites. All it does is insert common content into a number of HTML files – you can use it to easily update shared website menu, footer and such stuff. The main advantage is that Turnplate does not require you to process the files each time you make some change, you only have to run Turnplate after you modify some of the shared content.
This is how the “source” file looks:
When you run Turnplate, it replaces the code between the comments with the contents of file menu.tpl. That’s all. Turnplate is mainly targeted at people who want to make a simple website, do not want to mess up with PHP and do not want to update a lot of shared content by hand.
Installing & usingUntil I figure out something better, you can do this:
svn cat http://turnplate.googlecode.com/svn/trunk/turnplate.pl > turnplate.plThen simply put the script into a directory with the HTML files you want to update and run it. (Or you can pass the file names on the command line.)
These details are provided for information only. No information here is legal advice and should not be used as such.