It seems that on the doc
http://www.turbogears.org/2.1/docs/main/Templates/Jinja.html#filters
jinja_filters are reported to be a list.
While on test unit test_rendering:test_jinja_filters they are used as a dict.

This has been found due to Carlos Daniel Ruvalcaba providing a patch
to add jinja default filters.
I ended up applying a different patch instead of the suggested one due
to the fact that the suggested patch was using the jinja_filters as a
list and not as a dict.

Should we update the documentation to report that jinja_filters is a
dict or should we change the core behavior and test unit to expect it
to be a list?

Also docs reports "you can also have jinja2 autoload your filters by
creating a file called jinja_filters.py inside the folder
templatetools on you lib filter of you application." which isn't true
at all as far as I know.

Full story can be found at:
https://sourceforge.net/p/turbogears2/tickets/119/

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
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/turbogears-trunk?hl=en.

Reply via email to