Closed wolfendale closed 4 years ago
Nunjucks allows string concatenation with ~ for example:
~
{{ 1 ~ 2 ~ 3 }}
Outputs: 123
123
This is useful where concatenation with + and addition would be ambiguous (for example with numbers)
+
As an example of adding a binary operator to the expression language see #1
Nunjucks allows string concatenation with
~
for example:Outputs:
123
This is useful where concatenation with
+
and addition would be ambiguous (for example with numbers)As an example of adding a binary operator to the expression language see #1