Template Scripting
The runIfExpressions and Value expressions are ideal for calculating a single value result, but for some fields, such as large CMS bodies and email bodies, a template language is more suitable.
NEON supports this through a template scripting language called Freemarker. Freemarker overall has a similar syntax to the RunIf and Value Expressions, but also has support for loops and conditions, plus a number of built-in formatting functions. All of the NEON Scripting Model variables work exactly the same way as for run-if and Value expressions.
The Freemarker template language syntax and documentation can be found here: https://freemarker.apache.org.
The Freemarker template scripting is currently available:
- for the Message body field of Message Templates
- for all CMS fields of type BODY
Updated about 1 month ago