Table of Contents

Output Method “HTML + Handlebars” supports Handlebars syntax and you can easily output value of your block controls:
Available helpers
There are also available Handlebars helpers for your output code. You can find it in the official documentation http://handlebarsjs.com/builtin_helpers.html. In addition to default helpers we added also custom.
truncate
Truncate the string value and add three dots in the end of result string if needed.
Attributes:
- String for truncate
- Number of characters to be left
- Show three dots in the end
compare
Compare 2 values and show / hide content.
Attributes:
- First value
- Operator
- ==
- ===
- !=
- !==
- <
- >
- <=
- >=
- &&
- ||
- Second value
math
Mathematical operations with 2 values.
Attributes:
- First value
- Operator
- +
- –
- *
- /
- %
- Second value
date_i18n
Format date.
Attributes:
- Date format
- Date string
do_shortcode
The same function as WordPress’s do_shortcode.
Attributes:
- Shortcode name
Custom Helpers
You can add custom Handlebars helpers and use it in blocks output: