githubEdit

Functions & Operators

Documint uses an enhanced version of Handlebarsarrow-up-right as its templating engine. This means all valid Handlebars syntax is valid Documint syntax. Below is a list of custom functions that can be used in your Documint templates.

Combining Functions

You can combine functions by wrapping the inner function in parenthesis.

//Example
{{$multiply ($add amount_1 amount_2) ($add amount_3 amount_4)}}

Here we're using the $add function to sum two sets of values then multiplying them together. Functions in parenthesis will be evaluated first and returned to its parent function.

General

$calc

The $calc function is a powerful expression evaluator that enables complex calculations, string manipulations, array operations, and provides a secure sandbox environment within your templates.

$calcchevron-right

Math

$addchevron-right$subtractchevron-right$multiplychevron-right$dividechevron-right$sumchevron-right$minchevron-right$maxchevron-right$meanchevron-right$roundchevron-right$floorchevron-right$ceilchevron-right

List/Arrays

#eachchevron-right$filterchevron-right$groupchevron-right$joinchevron-right

Helpers

$extnamechevron-right$inspectchevron-right

Content

$linkchevron-right$mdchevron-right

Last updated

Was this helpful?