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...
----------------------------------------
Смотрите видео hapi — How to Use Multiple Handlebars Layouts онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Future Studio 23 Октябрь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,524 раз и оно понравилось 44 людям.