{% set url = media('/docs/privacy/' + language + '.html') %}
The above expression throws a parse error locally:
parseSignature: expected comma after expression
Investigating to try to figure out what might be wrong.
Did you ever figure it out?
I haven't, but I'll take a look this week.
Is this still an issue? @mattbasta
I don't know, I haven't used Nunjucks in any projects for almost a year now. It's doubtful that it's still an issue, though.
Hi guys, do you know what is the operator to concatenate strings?
Looks like the only way is to use the "replace" filter: 'my string _str2' | replace('_str2', string2)
The + operator should work fine.
Most helpful comment
The
+operator should work fine.