![]() |
||
|
||
![]() |
${expression}
Where:
The universal interpolation is used to output the string value of an expression. The string value of an expression is defined as follows:
if the expression evaluates to a TemplateNumberModel, then it is output in the format specified with the number_format setting.
if the expression evaluates to a TemplateDateModel, then it is output in the format specified with the time_format, date_format, or datetime_format setting, depending on whether the date information is time-only, date-only, or a datetime. Read about ?string for dates for more information.
if the expression evaluates to a TemplateScalarModel, then its string value is output as is.
if the engine is not in classic compatibility mode, and neither of the above holds, the evaluation ends with an error. Otherwise:
if the expression evaluates to a TemplateBooleanModel, true values are output as the literal "true", false values are output as empty string. To output boolean values outside the classic compatibility mode, apply the ?string built-in explicitly on a boolean expression.
if the expression is undefined it is output as empty string.
in all other cases, the evaluation ends with an error.
![]() |
||
|
||
![]() |
![]() |
|
Page generated: 2004-06-15 22:17:59 GMT | FreeMarker Manual -- For FreeMarker 2.3 |