[haml] simple question that would make my life a lot better

Hello,

In HAML, is it possible to get this result:

=> “wwwexamplecom”

So far I’ve only managed to get:

=> “com”

Which is logical because of the way Ruby blocks work. But, it defeats
the
HAML purpose of concatenating the things you put underneath each other.

CmdJohnson


http://rubyonrailsdeveloper.nl

Quoting Commander J. [email protected]:

Hello,

In HAML, is it possible to get this result:

What about:

Jeffrey

On Tue, Aug 30, 2011 at 12:02 AM, Commander J. <
[email protected]> wrote:

this is because you use -, use =. but that would leave a space in
between
the words. you might want to wrap
each word in a span and remove the whitespace

= link_to url do
%span>= ‘www’
%span>= ‘example’
%span>= ‘com’

http://rubyonrailsdeveloper.nl


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” 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/rubyonrails-talk?hl=en.