Sorry, I think I found the answer by myself:
= succeed '.' do
%a{:href=>foo_link}Foo
Is there a prettier way to get this behaviour?
On 4/17/07, Simon <[EMAIL PROTECTED]> wrote:
>
>
> What about this variation...
>
> I want the following output:
> <a href="foo.html">Foo</a>.
>
> my haml is this:
> %a{:href=>foo_link}Foo
> .
>
> which gives me this of course:
> <a href="foo.html">Foo</a>
> .
>
> Can I make the line break before the . go away without resorting to an
> <a href= etc in the markup? I'm not using rails if that makes a
> difference.
>
>
> Simon.
>
> On Apr 6, 4:13 am, Hampton <[EMAIL PROTECTED]> wrote:
> > I would just...
> >
> > == <span>[EMAIL PROTECTED]</span><span>[EMAIL PROTECTED]</span>
> >
> > Its a tad obtuse, but workable.
> >
> > On 4/5/07, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > No, for that you need to do it manually. Chances are that you'll soon
> > > see a helper that can deal with this, like so:
> >
> > > = one_line do
> > > %span Foo
> > > %span Bar
> >
> > > which would produce the desired result.
> >
> > > - Nathan
> >
> > > [EMAIL PROTECTED] wrote:
> > > > Hi guys.
> >
> > > > I need something like this:
> > > > <span>Foo</span><span>Bar</span>
> > > > There should be nowhitespacebetween Foo and Bar.
> >
> > > > The only way I know to do it in HAML is:
> > > > %span Foo
> > > > %span Bar
> > > > and it creates a newline between spans.
> >
> > > > Are there any ways to do such markup in HAML, except using raw Ruby
> > > > string literals.
> >
> > > > Thanks.
>
>
> >
>
--
Simon Baird <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---