Mercurial > genshi > mirror
diff doc/i18n.txt @ 884:e97cdbf09a18 trunk
Improve the template loader docs.
author | cmlenz |
---|---|
date | Fri, 16 Apr 2010 20:40:28 +0000 |
parents | 2bbaa61b328f |
children | b7e8b971d90a |
line wrap: on
line diff
--- a/doc/i18n.txt +++ b/doc/i18n.txt @@ -205,7 +205,7 @@ template.filters.insert(0, Translator(translations.ugettext)) loader = TemplateLoader('templates', callback=template_loaded) - template = loader.load("...") + template = loader.load('test.html') This approach ensures that the filter is not added everytime the template is loaded, and thus being applied multiple times.