Modifier: yes_no


A ternary-esque syntax for outputting yes if true, no if false. Both values can be customized by passing additional parameters. Also supports ? as shorthand.

foo: true
bar: false
{{ foo | yes_no }}
{{ bar | yes_no }}
{{ foo | yes_no:yep:nah }}
{{ bar | yes_no:yep:nah }}
{{ foo | ?:yep:nah }}
{{ bar | ?:yep:nah }}
yes
no
yep
nah
yep
nah
Last modified on November 6, 2018