Closed wolfendale closed 4 years ago
Filters should be able to be applied conditionally with a fallback:
{{ 'foo' | capitalize if x else 'bar' }}
Run with { x: true } would return "FOO" Run with { x: false } would return "bar"
{ x: true }
"FOO"
{ x: false }
"bar"
Filters should be able to be applied conditionally with a fallback:
Run with
{ x: true }
would return"FOO"
Run with{ x: false }
would return"bar"