Mercurial > genshi > genshi-test
diff doc/i18n.txt @ 884:5a1c0ee0f659
Improve the template loader docs.
author | cmlenz |
---|---|
date | Fri, 16 Apr 2010 20:40:28 +0000 |
parents | 0fb43dc2e165 |
children | 80f80f2eec6a |
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.