onehilltech/blueprint

How are partial views implemented?

bdfoster opened this issue · 3 comments

Partial views (such as with handlebars) do not seem to be supported, but is a key element in the DRY (don't repeat yourself) principle. Is there a directory (or a way to configure a directory) where partial views can be imported into a parent view?

On that same line of thinking, is there a directory (...) where layouts can be created/specified in a view?

@bdfoster It seems as if someone else had this issue with Express, and has created a project named express-handlebars to better support partials views in handlebars with Express.

Will this project solve your problem?

If so, then we could add a engines property to the server.config.js. This should allow you to integrate express-handlebars.

I did find that when searching Google. It definitely would solve the problem, but only for handlebars.

I agree, adding support for custom view engines would be beneficial. Picking up on #30.

Closing this question.