hapi.js - View engines

InstructorMike Frey

Share this video with your friends

Send Tweet

View engines, or template engines, allow you to maintain a clean separation between your presentation layer and the rest of your application. This video will demonstrate how to use the vision plugin with hapi to enable template support.

Hoang
~ 8 years ago

I am a bit confused by the use of server.register(require('vision', ....) the previous lesion have server.register(require('inert', ...) How do I combine all these registers into the server ?

Granit
~ 7 years ago

@Hoang: First you have to install these packages with npm i vision handlebars --save then use them as @Mike did.