Data and Variables
Variables give templates their superpowers. They tell Documint where to place your data in your document.
In addition to telling Documint where to place your data, there are also functions that you can use to manipulate data in your template. Here are some of the things you can do using functions:
- filter a list of data
- join data from a list
- group data together
- properly display markdown text
To add a variable to your template click the ‘New Variable button’ on the right-hand Data pane, enter the name of your variable in the input field, copy the generated variable name then paste the variable into a text field.
When your template contains variables it’s important to test those variables with sample data to see what your documents will look like before you connect your template to a data source. Enter test values to the variable fields and click 'Save & refresh'