#3 ✓resolved
Joe Egan

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


instead of the intended:

<h1>My title</h1>

Comments and changes to this ticket

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket