...

Text file src/github.com/noirbizarre/gonja/testData/filters/default.tpl

Documentation: github.com/noirbizarre/gonja/testData/filters

     1{{ simple.nothing|default("n/a") }}
     2{{ nothing|default(simple.number) }}
     3{{ simple.number|default("n/a") }}
     4{{ 5|default("n/a") }}
     5{{ ''|default('the string was empty') }}
     6{{ ''|default('the string was empty', true) }}
     7{{ ''|default('the string was empty', boolean=true) }}

View as plain text