> And if you forget the __init__.py file, the code won't import the existing
> jinja_filters.py... (without any notice)

You're right, that is missing on the docs, I will try to get on this too.

> or import a lib.templatetools.py file containg a jinja_filters dict made on
> the same model as the
>
> base_config.jinja_filters . This is my proposal :-)

When autoloading was first implemented there was a discussion on how
to do it, if I recall correctly, the reason to use
templatetools/jinja_filters.py is to not pollute the lib directory and
to have separate files for each template type so that genshi will not
import jinja stuff which does not support, thus in theory you can have
templatetools/genshi_filters.py and templatetools/jinja_filters.py  at
the same time, this however, is not supported right now as Genshi,
Mako and Jinja have very different ways of handling this stuff
(special filter functions vs plain functions).

Perhaps Alessandro or Michael can comment better on this.

Regards,
Carlos Daniel Ruvalcaba Valenzuela

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

Reply via email to