Website Meta Language (2006)
thewml.org
thewml.org
If I had to describe WML in a word, I'd say it's cruft. If I remember correctly it is up to 9 languages that you can use at once. (Lots of escaping!) With the exception of embedded Perl, which is about last in the parsing order, I don't remember any other of them to have even remotely usable datatypes. They have at most an ad-hoc macro system where HTML tags serve as function calls.
[0] http://search.cpan.org/~mschout/Text-Template-1.47/lib/Text/...
I don't know, but in my system I have, let's see: 1) read sources, 2) select the subset I want to publish, 3-4) resolve references (two steps), 5-6) assign XHTML IDs to references (two steps), 7) transform to XHTML, 8) update files. I don't see how I can make it smaller, that is, maybe I can cram everything into a single pass, but this will be much more complex than small steps in the pipeline.
And this is the minimum; it's pretty easy to add more passes for various extras.