I'm probably re-inventing the wheel, but I'm currently writing a CGI script that returns web pages built from templating information. (An example of the template file is [link|http://yceran.org/static/staticpages.qf|here]* if you're curious.) The script itself is written in [link|http://unicon.sourceforge.net/|Icon], so things like strings, lists and tables are first-class datatypes and thus easy to use. There is extensive string manipulation available, too, for those who don't know anything about Icon.
One of the things I've determined I need in the template language is an RPN processor (a bit like that use in HP calculators) to enable some conditional control et al. I've got all sorts of options for implementing this, but I'm not happy with some aspect of most of them. Has anyone else ever implemented an RPN processor?
Wade.
* Argh! Your browser will probably try to render it as it has HTML in it. Grr. Just do a browse source if your browse does that. The mime type is correct, BTW; text/plain.