Using Carrot to reference org data
You can use Carrot to reference information from your ChartHop organization, such as compensation data, groups, or specific employee data, and reference it directly in your templates as dynamically-generated fields. Learn more.
The following section features a list of helpful Carrot expressions available to you and illustrates how you can use them in your templates.
When using any of Carrot's date fields, such as startDatePlanned and so on, you need to specify the date format if you want something different from the default, which is YYYY-MM-DD.
If you use {{startDatePlanned}} without any indication of how you want it formatted, the date is formatted as such: YYYY-MM-DD or 2022-03-14.
If you'd like to format your dates differently from the default, you'll need to use something like this: {{formatDate(startDatePlanned, "MMMM d, yyyy")}}. This date is formatted as such: March 14, 2022.
You can use {{curlyBraces}} to substitute any Carrot expression in the body of your template.
You can use the if tag to conditionally display a piece of content.
{% if expression %} conditional content {% endif %}
You can use elsif or else to add additional conditions to an if condition block.
You can use the for tag to iterate through a series of objects.