I whipped up shakespearean templates for Elm. I did this while eating
breakfast: it is really easy to make a pass-through shakespeare
template.
https://github.com/yesodweb/shakespeare/tree/master/shakespeare-elm
I even got the test suite running, although it still has javascript in
the files.
I put a dependency on Elm, although at the moment it is not needed.
There is a ToElm typeclass for the conversion.
In the future for the javascript based templates we are planning on
moving from text-based insertion to JSON based insertion.
You might have different ideas for Elm.
With this and the Widget instance one should be able to quasi-quote as usual:
toWidget [elm| ... ]