This seems to be a StaticMatic problem, not Haml.
The syntax:
= partial('timeline', {:a => 'A', :b => 'B'})
works if the StaticMatic Base class has one line changed:
/Library/Ruby/Gems/1.8/gems/staticmatic-0.9.4/lib/staticmatic/base.rb
On line 217, change
html.render(@scope) { yield }
to
html.render(@scope, options) { yield }
On 29 Sep, 16:31, "Randy Parker" <[EMAIL PROTECTED]> wrote:
> 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, [EMAIL PROTECTED] = {...~ 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
-~----------~----~----~----~------~----~------~--~---