Go to Google Groups Home    StaticMatic
Fixing the passing of :locals to a partial in StaticMatic 0.9.4

Randy Parker <randy.j.par...@gmail.com>

The syntax:
= partial('timeline', {:a => 'A', :b => 'B'})

successfully passes local variables to the '_timeline' partial 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 }