Questions tagged [gulp-compile-handlebars]

4 questions
6
votes
1 answer

Compile both partials and markdown based on a Handlebars template with Gulp

I have a Handlebars template here called tpage.hbs: Title {{> head}} {{> home-header}} {{{ mdcontents }}} head and home-header are partials. I have a…
Cassidy
  • 3,328
  • 5
  • 39
  • 76
6
votes
2 answers

How to combine JSON and Handlebars from partials into HTML with Gulp?

I'm building a static site using Handlebars and Gulp. Here's my folder structure: app/ content/ intro.json header.json faq.json features.json footer.json templates/ home.hbs partials/ …
Cassidy
  • 3,328
  • 5
  • 39
  • 76
2
votes
1 answer

Gulp task to merge JSON and Handlebars from partials into HTML

I'm making a simple proof-of-concept website using JSON as a data source and Handlebars for a templating engine, with a view to 'merging' the two things into a static HTML file. The website will be very modular, so each component will be built using…
Dan
  • 5,836
  • 22
  • 86
  • 140
0
votes
1 answer

Handlebars compiles an empty template without data running inside Gulp task

I am running a simple gulp task that is supposed to render my handlebars template version in a specific language. The language data is stored in a JSON file and i require that dynamically inside a gulp pipe task I store that in a variable and then…
Alan
  • 1,134
  • 2
  • 13
  • 25