partials not receiving variables in staticmatic-0.10.6
Reported by Joe Egan | October 23rd, 2009 @ 10:25 AM
The following information from the guide is incorrect in the 0.10.6 build:
= partial('mypartial', :locals => { :title => 'My Title' })
This will locate the partial file as in the previous example above but now passes in a local variable called title that can be used in the partial like so:
%h1 title
This is acheiving
<h1>title</h1>
instead of the intended:
<h1>My title</h1>
Comments and changes to this ticket
-
Stephen Bartholomew October 23rd, 2009 @ 02:01 PM
Hi Joe,
You need to add an '=' to that element:
%h1= title
Can you try that and let me know if it works?
Cheers,
Steve
-
Joe Egan October 23rd, 2009 @ 02:10 PM
Yes!!!
Thanks a lot - that is a massive door open - can you update the documentation?
Thanks
-
Stephen Bartholomew November 1st, 2009 @ 07:56 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Light-weight static site framework