Commit 6a16c08
committed
Use default value when expr. evaluates to false
According to http://jinja.pocoo.org/docs/2.10/templates/#default
> If you want to use default with variables that evaluate to false you
> have to set the second parameter to true
This is the only way to use the default value when passing None, since
it evaluates to false.1 parent 3eb9b64 commit 6a16c08
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments