Awesome!  Thanks!

On Jan 5, 1:09 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Use the succeed helper:
>
> %p
>   %strong Description
>   (formatted with
>   = succeed ')' do
>     %a{:href => "http://hobix.com/textile/quick.html"} textile
>   %br
>   ~ f.text_area :description
>
> - Nathan
>
> Joe Beda wrote:
> > Hi all,
>
> > I'm new to haml and have been having fun with it. However, I'm not
> > sure the best way to express this:
>
> >   %p
> >     %b Description
> >     (formatted with
> >     %a{:href => "http://hobix.com/textile/quick.html"} textile
> >     ):
> >     %br
> >     ~ f.text_area :description
>
> > The idea is that I want to have a link inside of a set of parens. The
> > problem is that there is whitespace between the end of the anchor and
> > the close paren.  What is the best way to eliminate the whitespace?
>
> > I could write out the anchor explicitly or use markdown/textile for
> > this little snippet, but that doesn't seem to be in the spirit of
> > haml.
>
> > Ideally I'd like something like this:
>
> >   %p
> >     %b Description
> >     (formatted with
> >     %a{:href => "http://hobix.com/textile/quick.html"} textile
> >     ):
> >     !%br
> >     ~ f.text_area :description
>
> > Where the ! (or any other character) would eliminate the newline and
> > any whitespace between that line and the previous line.  Am I missing
> > something?
>
> > Thanks!
>
> > Joe Beda
--~--~---------~--~----~------------~-------~--~----~
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