hogan-express icon indicating copy to clipboard operation
hogan-express copied to clipboard

Render Partials off Disk and Show Errors on no Partial found.

Open tmcconechy opened this issue 10 years ago • 1 comments

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 avatar Sep 10 '14 18:09 tmcconechy

@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.

lennym avatar Oct 13 '14 16:10 lennym