wolfendale / scala-nunjucks

5 stars 1 forks source link

String concatenation with `~` #8

Closed wolfendale closed 4 years ago

wolfendale commented 4 years ago

Nunjucks allows string concatenation with ~ for example:

{{ 1 ~ 2 ~ 3 }}

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