tdreyno/middleman — Issue #152: Passing variables to partials with HAML
Author: hamishtaplin
Created: 2011-11-01 17:33:00+00:00
State: open

This page (http://middlemanapp.com/guides/templates-layouts-partials) seems to suggest this is possible with ERB but is it with HAML? Simply porting the ERB doesn't seem to work, eg:

= partial('includes/modules/char_carousel', :locals => {:hello=>"hello"})

attempting then access this data via:

= hello

Throws and error:

NameError at /fozzie_bear.html
undefined local variable or method `hello'

Am I missing something?