HTML to Hamlet converter
tanakh / html2hamlet Goto Github PK
View Code? Open in Web Editor NEWHTML to Hamlet converter
License: BSD 3-Clause "New" or "Revised" License
HTML to Hamlet converter
License: BSD 3-Clause "New" or "Revised" License
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.
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 output 2-space indented hamlet. Thanks!
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 chcp 65001
(https://stackoverflow.com/questions/14109024/how-to-make-unicode-charset-in-cmd-exe-by-default)
The tool worked great otherwise.
This can leave trailing whitespace which is highlighted in some editors. I believe the relevant line is
Line 76 in 0c4f843
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.