Hypothetically, how would adjacent text nodes be handled? Could we do
it so that there's no whitespace between a text node and an inline
tag?

%div
  %a{ :href => "#" } Hmm
  ?

would render

<div>
  <a href="#">Hmm</a>?
</div>

But if you wanted a space between a text node and an inline tag, you
could add a space to the end (or the start, if the case is reversed)
of the text node?

%div
  Look at
  %a{ :href => "#" } this
  !

(Not sure if the space survived there, supposed to go after "Look
at".)

would render

<div>
  Look at <a href="#">this</a>!
</div>

Does that seem like a good solution?


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