trailsjs / trailpack-hapi

:package: Hapi.js Trailpack
MIT License
19 stars 9 forks source link

View engine #84

Closed weyj4 closed 7 years ago

weyj4 commented 8 years ago

Should the view engine be configured in config.web.views or config.views? Right now it seems to work in either.

jaumard commented 8 years ago

Yeah for now it's work in both (same for express). In fact in config.views it's only a unify way to define a template engine and under config.web.views it's a web server specific way who allow to use multiple template engine. But yeah not sure both are needed...

jaumard commented 8 years ago

It can be confusing for users because if views are configured under web.js the template engine will not be visible under Basic info logs when Trails start...