Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing arguments to haml-js? #24

Open
chug2k opened this issue Jan 8, 2014 · 3 comments
Open

Passing arguments to haml-js? #24

chug2k opened this issue Jan 8, 2014 · 3 comments

Comments

@chug2k
Copy link

chug2k commented Jan 8, 2014

I'd like to pass arguments to haml-js to escape HTML by default. The documentation says I should do this:

Haml(src, {escapeHtmlByDefault: true})

How do I do this from grunt-haml?

@mehcode
Copy link
Contributor

mehcode commented Jan 8, 2014

It doesn't look like its currently possible to do so; see https://github.com/concordusapps/grunt-haml/blob/master/tasks/haml.js#L137

It'd be trivial to add if you want to fling a pull request our way (just add options as the second parameter to the function).

@melcher
Copy link
Contributor

melcher commented Jan 29, 2014

@chug2k Did you end up with a solution? Interested in the same thing and will take a pass at extending the plugin.

@melcher
Copy link
Contributor

melcher commented Jan 29, 2014

Actually I'm happy to use the existing context option in coffee-haml. Added a PR to document the option in #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants