shannonmoeller / handlebars-layouts

Handlebars helpers which implement layout blocks similar to Jinja, Nunjucks (Swig), Pug (Jade), and Twig.

Home Page:http://npm.im/handlebars-layouts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose 'helpers' publicly

kflorence opened this issue · comments

It would be nice of layouts.helpers was exposed for public consumption so it can be registered how and when the user sees fit.

Can you provide a use case where this would be helpful? The helpers all work together. Only registering a subset would lead to errors. Also, they may be registered as needed by passing in an instance of Handlebars.

@shannonmoeller I figured out a way to do this using the Assemble "register" syntax. On a side note, I really wish I'd found your https://github.com/shannonmoeller/gulp-hb repo before creating this: https://github.com/kflorence/gulp-handlebars -- I'm going to use yours instead and figure out a way of removing mine from npm :)

Glad this worked out for you and that my gulp-hb plugin was helpful too.