Hi! I have been using haml almost years now :-)
Now I have got one small idea, just need your opinion if this does not go against some fundamental haml way. If not then I would dig deeper and write some patch or smth. Currently: %li= nil It will return empty element <li></li> however I would prefer if it does not return anything at all. Why? Cos I'm using declarative authorization gem and often write code like: %li= link_to "Users", users_path if permitted_to? :manage, :users However sometimes I have css style for li elements and empty element got style as well. So at the moment I have to write code what is not so nice and one liner any more: - if permitted_to? :manage, :users %li= link_to "Users", users_path I have quite many permitted_to? methods in my views, so that's why I thought I need some global option for Nil not to return any output. What do you think? Cheers, Priit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
