Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EACCESS /root/views/partials #6

Open
ayozebarrera opened this issue Dec 22, 2015 · 2 comments
Open

EACCESS /root/views/partials #6

ayozebarrera opened this issue Dec 22, 2015 · 2 comments

Comments

@ayozebarrera
Copy link

Hi!

I'm having this error but I'm not using partials... do you know why it could be?

thanks

@yads
Copy link
Owner

yads commented Dec 23, 2015

This is being caused by express-handlebars it looks like they try to load partials when rendering a view even if you don't use partials. The default folder is /views/partials. You can try to set it to undefined in your options hash:

hbs({
  ...
  partialsDir: undefined,
  ...
});

If that doesn't work, then you can try to just create the dummy folder.

@yads
Copy link
Owner

yads commented Dec 23, 2015

Actually it looks like a partialsDir is required, handlebars throws an exception if it's undefined.

https://github.com/ericf/express-handlebars/blob/e3ba74c5df9b34762ff4b701a1bb4f6c54c09951/lib/express-handlebars.js#L70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants