Haml formatting

Posted by mathee on Stack Overflow See other posts from Stack Overflow or by mathee
Published on 2010-04-26T03:54:37Z Indexed on 2010/04/26 4:03 UTC
Read the original article Hit count: 316

Filed under:
|

I'm new to haml, so I'm still trying to figure out the formatting.

I have an index.haml file with the following code.

%h1
  Welcome to Solidarity

Hello,
= @profile.first_name
!

It renders like this:

Welcome to Solidarity
Hello, user !

Here's the page source:

<h1>
  Welcome to Solidarity
</h1>
Hello,
frances
!

It has a space between @profile.first_name and the exclamation mark. Why is that? And, how do I fix it?

© Stack Overflow or respective owner

Related posts about haml

Related posts about ruby-on-rails