How are you embedding the Haml code? Could it be that the #{} is being read
as normal Ruby interpolation rather than Haml interpolation?

On Tue, Sep 15, 2009 at 1:07 AM, Gimi <[email protected]> wrote:

>
> I was using Sinatra 0.9.4 + haml 2.2.4.
>
> I defined a variable in a get method, like:
> get '/' do
>  @msg = "New message"
> end
>
> And I wanted to retrieve it on my haml template through Interpolation,
> like:
> %p You've got #...@msg}
>
> But it turned out that @msg is nil! Why? Am I missing anything?
>
> Any body can give me a tip? Any help is greatly appreciated!
>
> P.S. It didn't work event with haml-edge 2.3.27.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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