bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

Included templates should not inherit the parent's locals/helpers #141

Closed bminer closed 11 years ago

bminer commented 11 years ago

The default behavior when including a child template should be to expose none of the parent's view locals. Right now, all view locals are exposed. Currently, one can control which locals are exposed to the included template using the exposing keyword. Exposing * could be a solution to expose all parent view locals.

Anyone out there have any thoughts on this?

bminer commented 11 years ago

I am closing this issue because I like the current behavior of exposing all parent view locals to child views.