You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a default filter without specifying boolean, nunjucks displays an outdated deprecation warning.
Ex:
{{ x | default('y') }}
produces the following warning:
[nunjucks] Warning: the "default" filter was used without specifying the type of comparison. 2.0 changed the default behavior from boolean (val ? val : def) to strictly undefined, so you should make sure that doesn't break anything. Be explicit about this to make this warning go away, or wait until 2.1. See http://mozilla.github.io/nunjucks/templating.html#defaultvalue-default-boolean
The warning says 'or wait until 2.1.', and the documentation says it will be removed in the next version.
When using a default filter without specifying boolean, nunjucks displays an outdated deprecation warning.
Ex:
produces the following warning:
The warning says 'or wait until 2.1.', and the documentation says it will be removed in the next version.
Appears to still be in master as of today:
nunjucks/src/filters.js
Lines 70 to 77 in 90e3913
Does this need a PR to update documentation and/or remove the warning?
The text was updated successfully, but these errors were encountered: