Does anyone know why html2haml is converting characters inside my
RHTML tags to HTML entities?
Have I just missed something completely obvious here?
That hpricot bug is very annoying. Over 9000 internets to the person
who fixes it.
Wow, thanks, that was extremely helpful and amazingly fast :)
but there is a dash missing I think. It should be:
match_to_html(template, /<%-(.*?)-?%>/m, 'silent')
because otherwise "silent" RHTML tags like
<%- form_for ... -%>
get translated with two leading dashes, not one, as in:
- - form_for ...
"Silent" end blocks also don't get stripped, they wind up in the HAML as
- end
I agree with leaving them in as helpful comments. But since "- end"
gives an error, wouldn't it be better for html2haml to generate them
as comments ("- # end") instead? I know I've hand-fixed the
indentation before and forgotten to remove the end's, only to be
confronted with an error.
-Neil