koajs / koa-hbs

Handlebars templates for Koa.js
MIT License
160 stars 43 forks source link

Layout overrides #44

Closed geoffberger closed 7 years ago

geoffberger commented 8 years ago

We've been using this middleware for a while now and it's worked out really well.

Unless there is already a preferred way of doing this in its current state, we wanted to add the following features:

I was able to figure out a way of doing this without modifying koa-hbs, but it's pretty hacky. In the interest of contributing for others to use, I'd be happy to put in a pull request with the changes specified above. If there is already a way of accomplishing the above that I may have missed, I'm more than open to that too.

Thanks!

shellscape commented 8 years ago

@geoffberger please do submit a pull request for these features.

shellscape commented 7 years ago

@geoffberger your first request has been fulfilled by https://github.com/gilt/koa-hbs/pull/51. closing this issue since it's gone stale. we'd be happy to take a look at a PR with changes and tests for the second request.

geoffberger commented 7 years ago

👍