I am starting to use the Yesod web framework. I have an existing HTML code template that I would like to automatically translate to the Hamlet code structure. Is there any way to do this?
Here is a solution that can do most of the work.
perl -pe 'chomp' test.html | xmllint --format --encode UTF-8 - | perl -pe 's#</[^>]+>##g'
from https://github.com/yesodweb/yesod/wiki/Hamlet