Please try the following demo which uses slightly modified html parser that also handles Mustache templates.
It should be possible to create a generic scheme for the similar to html_with_scripts.xml, let me know if you prefer this.
I am also interested in this Mustache demo but the link no longer appears to work.
I’ve uploaded this demo there:
Got the zipfile – thanks!