I am currently using the following format for gulp-handlebars:
{{#> layouts/main title="my title" pagename="my_page_name"}}
Where I see others using the following format:
---
layouts: main
title: my title
pagename: app-is-fixed
---
When I try the second format my page fails to compile or it adds the title as text on top of the page not as variable.
Can someone please guide me how I can use the second format for my template pages?
Managed to resolve it by using gulp-assemble, they have a pretty good description on how to get started https://www.npmjs.com/package/gulp-assemble
If anyone interested, this is the format used:
And your hbs pages will be the following: