Questions tagged [assemble]

Component, documentation and static site generator for node.js. Assemble makes it easy to build web projects from reusable templates and data. Includes options for using JSON, YAML, YAML front matter, templates, pages, includes, layouts, filters, middleware and helpers.

227 questions
26
votes
1 answer

What does `{{{variable}}}` mean in handlebars?

What does triple curly braces mean in handlebars template syntax? For example {{{variable}}} I cannot find any documentation. Thanks
MeV
  • 3,761
  • 11
  • 45
  • 78
21
votes
9 answers

How should I configure grunt-usemin to work with relative path

I have a grunt project backed by a yeoman-generator that I've built based on the generator-webapp, if it's of any help, you can find it on GitHub The grunt project makes us of the grunt-usemin task. My project involve building a multilingual…
Jérémie Parker
  • 3,184
  • 2
  • 20
  • 33
13
votes
3 answers

How to use Handlebars ternary helper?

Following this answer, I wrote a helper like module.exports.register = function (Handlebars) { Handlebars.registerHelper('ternary', function(test, yes, no) { return test ? yes : no; }); }; I'm certain that the helper is loaded and…
ryanve
  • 50,076
  • 30
  • 102
  • 137
9
votes
1 answer

Context of {{title}} in master template when using multiple data/json files using assemble

I am using assemble.io for a simple static web site but am having issues with the {{title}} tag. Here is a rough overview of the issue. Here is my layout.hbs: {{title}}