hapi — How to Use Multiple Handlebars Layouts

Published: 23 October 2017
on channel: Future Studio
6,524
44

Do you want your startpage look different than other pages? Emphasize topics in a hero section and go with a default layout on all other pages. hapi let’s you do that!

Vision (view plugin for hapi) let’s you change the view manager configuration on a route basis 👌

Let’s say your my-layout file specifies the layout for your site that is suitable for 80% of your web pages. It imports your header and footer, and keeps the content responsive using a CSS framework’s grid.

Within the rest 20% of pages you want to add a dedicated hero area with a gradient background and highlight a single element.


Dedicated tutorial for an easy read and code snippets to copy & paste
► https://futurestud.io/tutorials/hapi-...

Build your own Futureflix, within the “learn hapi” learning path
► http://learnhapi.com

Futureflix Starter Kit on GitHub
► https://github.com/fs-opensource/futu...

Watch the playlist with all hapi videos here:
►    • hapi Tutorial — Getting Started and Y...  

vision’s API (shown at 5:20)
► https://github.com/hapijs/vision/blob...

----------------------------------------

Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week.

Checkout 350+ technical in-depth tutorials:
► https://futurestud.io

Subscribe for two new videos every week:
► https://www.youtube.com/c/FutureStudi...

----------------------------------------

Follow us on social media to get updates on new content:
►   / futurestud_io  
►   / futurestudiouniversity  
► https://plus.google.com/+FutureStudio...

----------------------------------------


Watch video hapi — How to Use Multiple Handlebars Layouts online without registration, duration hours minute second in high quality. This video was added by user Future Studio 23 October 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,524 once and liked it 44 people.