When I call    = partial('my_partial', :locals => {:a => 'A'}
the partial renders 'a' as the sting 'a', not its value 'A'.

I see that in early December 2007 somebody else encountered a similar
problem, which Nathan tracked down to a plugin installing a helper that
called the partial without the :locals parameter.  I don't think that's my
problem.  Sites like this,  http://iain.nl/2008/02/first-haml-evaluation/
leave me wondering if there are there some tricks I must use?

I'm running haml 2.0.3 with Staticmatic 0.9.4

My ugly workaround is to set an instance variable hash that contains all the
details that I want my partial to render,  @pass_hash = {...~ 10 values }.
 I re-use this pass_hash for each call.

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