Open Drup opened 9 years ago
A lightweight resilient html5 parser is now available: https://github.com/aantron/markup.ml/
On point 2., also see https://github.com/ocsigen/tyxml/issues/72
Can you give some more detail on what you would want for the second (non-syntax) part of point 3?
Well, basically, create an executable that takes a file containing bits of html or svg (like some templating thingy) and output an ocaml file. We could reuse some classic template syntax such as mustache.
WIP version in https://github.com/ocsigen/tyxml/pull/128
There has been several request of a templating method in tyxml. Also, with the various other ppx coming, finally cleaning up the syntax extension question might be a good idea.
Here are my notes and ideas on how to do it: