I know I'll probably get shot down for this (especially so late in the
day :)

I was just looking at my Haml and noticing that I don't use plain text
nodes that often compared with -, = and %

So in the interests of simplicity and DRYness, would it be a good idea
to assume that no special character is a tag and use another control
character for text nodes.

So :

%h1#game_name
%span#users
  = render :partial => "versus", :locals => {:game => @game}
%ul#user_colors
  %li White
  %li Black

would become

h1#game_name
span#users
  = render :partial => "versus", :locals => {:game => @game}
ul#user_colors
  li > White
  li > Black

where I've arbitrarily chosen > to mean text node

Fire away

*...(


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