html2hamlet
html2hamlet copied to clipboard
HTML to Hamlet converter
Thanks to @bitemyapp and @meteficha and of course @tanakh for writing it! It just had some bit rot, works now!
I made other changes in my fork https://github.com/bitemyapp/html2hamlet but this is the neutral change that you may want to incorporate.
https://github.com/jvadillo/twitter-bootstrap/blob/master/index.html
This can leave trailing whitespace which is highlighted in some editors. I believe the relevant line is https://github.com/tanakh/html2hamlet/blob/0c4f8438c85951a00e7f9e93fbdf920d2cabf210/Html2Hamlet.hs#L76
Otherwise, hamlet will choke with a message like ``` Received a command I did not understand. If you wanted a literal $, start the line with a backslash. ```
To run on Windows I had some problems with the terminal charset: `html2hamlet.exe: index.hamlet: commitAndReleaseBuffer: invalid argument (invalid character)` I solved by running cmd using the following command: cmd /K...
I really like this, it works great! However, I generally stick to 2-space indentation for .hamlet. I'd love a way to pass a simple argument to html2hamlet to make it...