Message from discussion
Fixing the passing of :locals to a partial in StaticMatic 0.9.4
MIME-Version: 1.0
Received: by 10.100.229.14 with SMTP id b14mr379058anh.17.1222797261833; Tue,
30 Sep 2008 10:54:21 -0700 (PDT)
Date: Tue, 30 Sep 2008 10:54:21 -0700 (PDT)
X-IP: 24.98.198.240
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9) Gecko/2008061004 Firefox/3.0,gzip(gfe),gzip(gfe)
Message-ID: <98d12ca1-4da0-4221-a459-3752809210fb@c65g2000hsa.googlegroups.com>
Subject: Fixing the passing of :locals to a partial in StaticMatic 0.9.4
From: Randy Parker <randy.j.par...@gmail.com>
To: StaticMatic <staticmatic@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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