How to check if a variable exists in a FreeMarker template?
- by Don
Hi,
I have a Freemarker template which contains a bunch of placeholders for which values are supplied when the template is processed. I want to conditionally include part of the template if the userName variable is supplied, something like:
[#if_exists userName]
Hi ${userName}, How are you?
[/#if_exists]
However, the FreeMarker manual seems…