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

Dynamically load partials, aka `res.render` #33

Closed mattfysh closed 8 years ago

mattfysh commented 8 years ago

When booting up the server, the partial templates are baked into the process and do not change when the layout hbs files are updated. This is unlike res.render which appears to use the latest file contents for each render. Is there a way to achieve this same functionality for partial templates? thanks!

shannonmoeller commented 8 years ago

handlebars-layouts is not responsible for loading partials, it merely makes use of what partials have been registered. Is it possible you logged this issue in the wrong repo?

mattfysh commented 8 years ago

you're right, just noticed the registerPartial API in handlebars. closing