[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"\u002Fmhtml":3},{"id":4,"title":5,"body":6,"createdAt":42,"description":43,"draft":44,"extension":45,"image":46,"mastodonThread":46,"meta":47,"navigation":48,"path":49,"seo":50,"stem":5,"tags":51,"updatedAt":42,"__hash__":53},"content\u002FMHTML.md","MHTML",{"type":7,"value":8,"toc":38},"minimark",[9,17,20,23,26],[10,11,12,13],"p",{},"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 (#!\u002Fusr\u002Fbin\u002Fmhtml) context and a pre-compiled context. The idea was to add a few tags, such as ",[14,15,16],"macro",{},", which would allow me to add some magic tags to HTML in a natural way.",[10,18,19],{},"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.",[10,21,22],{},"If nothing else this is a good example of writing such a thing in OCaml, including parsing and interpreting the macro language.",[10,24,25],{},"Get the code at:",[27,28,29],"ul",{},[30,31,32],"li",{},[33,34,35],"a",{"href":35,"rel":36},"http:\u002F\u002Fthelackthereof.org\u002Fprojects\u002Focaml\u002Fmhtml\u002F",[37],"nofollow",{"title":39,"searchDepth":40,"depth":40,"links":41},"",2,[],"2006-04-04T01:48-04:00","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 (#!\u002Fusr\u002Fbin\u002Fmhtml) 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.",false,"md",null,{},true,"\u002Fmhtml",{"title":5,"description":43},[52],"project","YFE1JNTa9HjRqa60kSmmiQo_KJFSMokI4rhiDfP_fMA",1778988312151]