Hi
my case: i hate filters :)
well i hate the way that is used to invoke filters, in Django was
comprensible because you only have templatetags or filters to pass
parameters but in Jinja2 i can register a function in globals and pass
parameters, then, why i need filters ?
why we need to use
{{ var | filter() }}
when this can be
{{ filter(var) }}
?
i presume that the convention is that the filter get *modified* the data
(the 1st parameter) and the function can be liberal with their output, but
maybe with the functions merged in globals the implementation can be
simplified.
exist any side effect if i register my filters like functions in my global
space to be invoked like functions ?
sorry if this question was asked before but i search in google and archives
and dont find any related :(
P.D. sorry for my bad english
--
Yonsy Solis
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pocoo-libs/-/QWFJS2TYtjUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.