donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 156 forks source link

script type javascript fails to compile as filter #80

Closed caqu closed 10 years ago

caqu commented 10 years ago

The line: <script type="text/javascript"> currently switches to: :javascript But this doesn't compile. This works instead: script(text/javascript).

donpark commented 10 years ago

:javascript is emitted only if --scalate or -s option is used.

Are you targeting Scalate? If not, omit options mentioned above.

caqu commented 10 years ago

I'm using it with Grunt. I hadn't set any options. It looks like the default state is scalate: true. I've set it to false and now it works as expected. Thank you so much!

donpark commented 10 years ago

Thanks for letting me know. I just filed an issue on this at grunt-html2jade project.