2008/10/16 Noah Sussman <[EMAIL PROTECTED]>

>
> 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 ...


Fixed and pushed to my stable branch.


> "Silent" end blocks also don't get stripped, they wind up in the HAML as
>  - end


I'd rather not tackle this yet. Removing "end" in your converted erb would
make hand-modifications (like proper indenting) much harder because you will
not know where the block finishes. Best to leave to the humans to take em
out.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to