How to configure partials and layouts for Handlebars in Sails.js?
问题 I run Sails 0.9.7 and have installed Handlebars which is supported by Consolidate.js and therefore is supported by Sails I can serve pages from .handlebars files, it works just fine. I can't figure where, in Sails workflow, and in a Sails way , I should register partials, helpers etc... I'm more looking for best practices than just a working solution but any help will be appreciated. 回答1: I'm running v0.10 beta but this shouldn't affect how I got it working below: Engine should be handlebars