tera icon indicating copy to clipboard operation
tera copied to clipboard

Allow 'default filter' when (custom) function returns null

Open casper-embion opened this issue 1 year ago • 1 comments

Adds the ability to use the default filter when calling functions. The default will be applied when the function returns a 'null object'.

example usage: {% set my_var = my_function() | default(value=0) %}

casper-embion avatar Nov 20 '24 15:11 casper-embion

I think it's ok but it's already working in the next version so I'm not sure I want to add more changes to v1

Keats avatar Nov 25 '24 08:11 Keats