Toolbox
The Toolbox provides a collection of essential functions for templates. While some are just convenient shorthand functions for more complex statements, others provide the main interface to interact with objects, create redirects and work with query strings.
<@ function { options } @>
Like all statements, Toolbox functions are always wrapped in Automad's statement delimiters. Options can be passed as a kind of "dirty" JSON object. Note that the keys are not quoted here. It is also possible to use variables as values. Variables only need to be quoted when concatenated with other strings.
<@ function {
key: @{ variable },
anotherKey: "@{ variable } in a string"
} @>