Message from discussion
Documentation error
MIME-Version: 1.0
Received: by 10.100.205.15 with SMTP id c15mr190107ang.23.1238775612181; Fri,
03 Apr 2009 09:20:12 -0700 (PDT)
Date: Fri, 3 Apr 2009 09:20:12 -0700 (PDT)
X-IP: 75.67.199.118
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe)
Message-ID: <9eecc1a7-b53f-40b3-a270-87157331b55e@h28g2000yqd.googlegroups.com>
Subject: Documentation error
From: noah paessel <kno...@gmail.com>
To: StaticMatic <staticmatic@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi, I have been enjoying working with staticmatic for the last week.
I am new to haml & sass, but really enjoy it.
According to documentation on the website: http://staticmatic.rubyforge.org/how_to_use.html
Partials are invoked, passing local variables in named parameter, like
so:
= partial('mypartial', :locals => { :title => 'My Title' })
But I couldn't get that to work. Instead, I just passed in a hash,
and everything worked:
= partial('mypartial', { :title => 'My Title' })
Cheers,
- Noah