MHTML

Created 2006-04-04 / Edited 2006-04-04

At some point a long time ago I thought it would be cool to have macros in HTML. I originally wrote it in Perl, but then switched over to OCaml. I used it both in an interpreted (#!/usr/bin/mhtml) context and a pre-compiled context. The idea was to add a few tags, such as , which would allow me to add some magic tags to HTML in a natural way.

I've since decided that I don't care for this much. You could consider this as a form of XML transform, along the lines of XSLT. I don't care for XSLT much either.

If nothing else this is a good example of writing such a thing in OCaml, including parsing and interpreting the macro language.

Get the code at: