publicclass / express-partials

Express 3.x Layout & Partial support.
182 stars 146 forks source link

Added locals back to options for access within partials. #38

Closed aforward closed 10 years ago

aforward commented 11 years ago

I am new to node.js -- so I am not sure if this is an issue with haml.js, or with express-partials, but in essence I was not able to successfully pass local variables into my haml partials.

So, I added the "locals" to the options directly and things worked like a charm (see npm spec showing the issue I was trying to accomplish.

bencevans commented 10 years ago

:+1: