Check out this blog post: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content
On Tue, May 4, 2010 at 7:41 AM, Lars Olsson <[email protected]> wrote: > Hi all! > > I've run into one of those seemingly simple problems that really can > drive you mad. I'm trying to render a html string like this one > > <p>The quick brown fox jumps over the <strong>lazy dog</strong>.</p> > > The basic haml code I'm using for this is: > > %p > The quick brown fox jumps over the > %strong lazy dog > \. > > Now, this renders the punctuation mark on a line of its own (meaning > that a space will appear on the page). As this is undesirable, I tried > using the > and < modifiers to remove the newline, but that instead > gives me another problem. > > %p > The quick brown fox jumps over the > %strong> lazy dog > \. > > renders > > <p> > The quick brown fox jumps over the<strong>lazy dog</strong>. > </p> > > which means I'm now missing a space between 'the' and '<strong>'. > > Is there a simple solution to my problem? > > Kindly > > /lasso > > -- > 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] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- 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.
