> One big problem with this is that it would break all pre-existing Haml
Granted. It would have to be an option.
> Really, though, I think I prefer the current way of doing it. It just feels
> right.
But that's what HTMLer's say about HTML :-)
Personally I think it would be better - far less funny characters in
the code - but it was mainly just an interesting thought. I certainly
realise that it's late for such fundamental changes.
On Nov 11, 7:42 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> One big problem with this is that it would break all pre-existing Haml
> code out there, unless for some reason they never used elements or text
> nodes. Also, it would invalidate the manual use of HTML, although I
> suppose that could be added as a special case. Really, though, I think I
> prefer the current way of doing it. It just feels right.
>
> weepy wrote:
> > haha - was it such a bad idea that it didn't warrant a reply ? !
>
> > *...(
>
> > On Nov 7, 8:36 am, weepy <[EMAIL PROTECTED]> wrote:
>
> >> 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
-~----------~----~----~----~------~----~------~--~---