Helpers
Helpers are functions that you can use in your Handlebar template files to help generate your theme.
🔗 What is a helper?
A helper is a block that helps you provide some logic in your templates.
{{#if user.imageUrl}}
<img src="{{user.imageUrl}}" >
{{/if}}
🔗 Handlebars.java Helpers
The Referral SaaSquatch template system is built using Handlebars.java and comes with a number of built-in helpers:
- if - check for truthiness
- each - loop through lists
- with - change the context
- unless - check for falsiness
- block - create a block that can be overridden by subtemplates
- partial - load a partial
🔗 Referral SaaSquatch Helpers
The Referral SaaSquatch template system also includes a few custom helpers built specifically to help you run your theme.