On Friday 23 June 2017 19:01:21 allejjandr...@gmail.com wrote: > IMHO I think it's more consistent with the definition of certain filters > make the system somehow "lazy" and only evaluate filter variables only when > are used. >
Like everything else, it's a tradeoff: Making conditional filters "lazy" or "short-circuit" may be consistent with their conditional semantics, but making all filter arguments evaluated by the template engine creates more consistency among filters and tags in general. Further, giving elements control over the evaluation creates the temptation to take some strings verbatim from the arguments -- which was the way the url tag used to work, and which was painstakingly fixed at 1.5. However, that whole discussion is somewhat tangential to the topic of this thread -- if you want to open a discussion on "should filter arguments always be evaluated", I think it would be more productive to open a new thread. Shai.