Gareth Edwards <Gareth.Edwards@xxx.xxx.xxx> writes: > Resurrecting an old topic for a new requirement... > > Dick Middleton wrote: >> Ed wrote: >> >>> Perhaps at this point it's worth considering a templating scheme even >>> for static pages so that future changes just involve changing the one >>> file and re-running make or whatever. More work than just making this >>> edit but worth it for the next time. >>> >>> Can anyone recommend a good (static web page) templating program? >>> there seem to be lots out there. >> Go for Smarty it's wonderful. I even pre-process by style sheets with >> it! > > Smarty appears pretty PHP-centric; does it work well/at all for > completely static HTML sites? Any other favourite templating systems for > static sites? > > I use WML http://thewml.org at the moment for a couple of sites I > maintain but I've been considering other options for fun. I have my own system :-). It's purely static at the moment, and involves writing ReStructured Text (http://docutils.sourceforge.net/rst.html), converting it to XML using Python's docutils and then running that XML through an XSLT, giving XHTML. I have a Makefile that does all the processing for me. I'm contemplating adding a dynamic layer with mod_python, but not during exam season. You can see the results, along with all the code, on <http://aylett.co.uk>. There's a (poorly written) page on how it all hangs together at <http://aylett.co.uk/articles/technology>. The Jabber status indicator is a pass-through to Edgar that hides my JID (because it is the same as my email address, and I don't want to make that known to the spiders). OK, -- Andrew Aylett | www.aylett.co.uk | 1.79 x 10^12 furlongs per fortnight... andrew@xxx.xxx.xxx | answer==42 | -- it's not just a good idea, it's the law!
Attachment:
pgp00005.pgp
Description: PGP signature
|
This archive is kept by wibble@morpheux.org.DONTSPAMME | homepage |