concordusapps / grunt-haml

Process HAML templates to precompiled JavaScript or rendered HTML.
https://npmjs.org/package/grunt-haml
MIT License
41 stars 28 forks source link

Prevent escaping strings? #27

Open nejj opened 10 years ago

nejj commented 10 years ago

Currently passing:

%link{rel : "stylesheet", type : "text/css", href : "/<%= grunt.config.get('pkg.name') %>.css"}

Results in:

<link rel="stylesheet" type="text/css" href="/&lt;%= grunt.config.get('pkg.name') %&gt;.css" />

Is there a way to prevent escaping so the final output so the final result looks more like:

<link rel="stylesheet" type="text/css" href="/<%= grunt.config.get('pkg.name') %>.css" />

Currently to achieve this functionality I have switched the html_escape functionality inside haml.js to just return the text, though I'm sure this is going to break tests and is a short term solution.

Thanks.