creationix / haml-js

Haml ported to server-side Javascript. This is a traditional server-side templating language. Tested with node-js
MIT License
902 stars 110 forks source link

AMD compatibility + hamlint utility #70

Closed tardyp closed 7 years ago

tardyp commented 12 years ago

haml-js can also be very good for client side templating. This pull request adds support for working with requirejs or dojo that use the AMD module model, while still keeping full compatibility with dojo module system.

I also added a hamlint command line utility so that you can detect error in your haml syntax straight from the editor. When the haml looks correct this tool use html_beautifier if it is installed in the system, so that developer can check that generated html looks correct.