Here's a short guide to Handlebars syntax. For more information, consult the official Handlebars documentation.
You refer to variables like this:
If the variable is an object with properties of its own, you can refer to them like so:
This is how you refer to a specific index of an array:
You can use Handlebars comments in your files. Commented out sections won't show up in the final rendered output.
If the content you want to comment out contains }} or other Handlebars tokens, you need to use different comment style:
Here's an example of if-condition:
This is how you iterate over a collection of items:
If you don't want to process a Handlebars expressio, you can escape it by prefixing it with an escape character \
like so: