For the complete documentation index, see llms.txt. This page is also available as Markdown.

Functions & Operators

Documint uses an enhanced version of Handlebars 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.

$calc

Math

$add$subtract$multiply$divide$sum$min$max$mean$round$floor$ceil

List/Arrays

#each$filter$group$join

Helpers

$extname$inspect

Content

$link$md

Last updated

Was this helpful?