Yeah, if the indentation detection were good enough that it would work 
for most simple cases, I think that would be reasonable.

Gunnar Wolf wrote:
> Nathan Weizenbaum dijo [Fri, Dec 19, 2008 at 12:18:13PM -0800]:
>   
>> This is intentional. In order for html2haml to be able to accurately 
>> detect where indentation should be added, it would need to be able to 
>> parse Ruby code, which is out of its scope. Thus, we leave it up to the 
>> human to manage the indentation, and leave the "- end"s in as a signal 
>> that that's necessary.
>>     
>
> Ok, I get the basic motivation, specially if the conditional code
> includes HTML tags... Still, would you consider adding this
> controllable by a command-line switch, just as -r works now?
> (signalling to try to process RHTML in addition to regular HTML)
>
>   


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