On 9/4/08, Patrick Aljord <[EMAIL PROTECTED]> wrote:
>
> I'm trying to generate:
> @<a href="#">foo</a>
>
> but it keeps generating:
> @ <a href="#">foo</a>
>
> with a space between @ and the link. I use this:
>
> = "@"
> %a{ :href=>"#"}
> = "foo"
>
> Any idea?
You could also write this:
= precede("@") do
%a{ :href => "#" }
foo
As an aside, using = and wrapping your text in quotation marks is
redundant. (Assuming you weren't just doing that for the example.)
Instead of:
= "foo"
write:
foo
Simple enough.
--
Chris Boone, Hypsometry
http://hypsometry.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---