From dc32039524782ab2c74dce38a708e39e74da0b2d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 2 Jul 2024 16:20:20 +0300 Subject: [PATCH] Add allowed tags to templates --- source/en/templates.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/source/en/templates.md b/source/en/templates.md index 8746802b..2ed194bd 100644 --- a/source/en/templates.md +++ b/source/en/templates.md @@ -162,6 +162,43 @@ Standard $ notation variables are also available within templates, this allows y ``` +#### Allowed Tags +* if +* for +* set +* filter + +#### Allowed Filters +* escape +* e +* upper +* lower +* capitalize +* filter +* length +* merge +* format_currency +* format_number +* format_percent_number +* map +* join +* first +* date +* sum + +#### Allowed Functions +* range +* cycle +* constant +* date + +#### Allowed Properties +* type_id + +#### Allowed Methods +* img +* t + ## Statements Statements are special objects in templates. Because the input data point is a client/s we need additional information to understand whether a template is a "statement" template or not.