hogan-express
hogan-express copied to clipboard
Render Partials off Disk and Show Errors on no Partial found.
I'm wondering if its possible to render a partial off disk in a template without declaring it in the partials variable in app.js, if so I am not seeing this?
For my use i have a lot of changing partials also when i add them its another step to go in and declar them here.
What if the partial loading would...
- you can declare partial by path in the template: {{> pathtopartial/mypartial}}
- Check the partials variable
- If that does not exist look on disk for the partial and load it up
- If neither give an error - which it doesn't seem to now
@tmcconechy I've implemented part of what you describe (throwing if a partial is undefined) and published the fork to npm as hogan-express-strict
.