shannonmoeller / handlebars-layouts

Handlebars helpers which implement layout blocks similar to Jinja, Nunjucks (Swig), Pug (Jade), and Twig.
http://npm.im/handlebars-layouts
MIT License
361 stars 29 forks source link

Adds support for passing context in extend helper. #21

Closed mynameisstephen closed 9 years ago

mynameisstephen commented 9 years ago

Allows

{{#extend 'textfield' context value="test"}}
...
{{/extend}}
shannonmoeller commented 9 years ago

I think this is a good feature to add. Needs a test case though.

shannonmoeller commented 9 years ago

As no test case was provided, I've implemented a slightly different solution with the same end result. Released as v3.1.0.