Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 8360:acc202b71619
templater: provide the standard template filters by default
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 12 May 2009 12:04:05 +0200 |
parents | 07ddec2ea203 |
children | 1bd0fdf4c1ec |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Tue May 12 10:57:55 2009 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Tue May 12 12:04:05 2009 +0200 @@ -8,7 +8,7 @@ import os from mercurial.i18n import _ -from mercurial import ui, hg, util, templater, templatefilters +from mercurial import ui, hg, util, templater from mercurial import error, encoding from common import ErrorResponse, get_mtime, staticfile, paritygen,\ get_contact, HTTP_OK, HTTP_NOT_FOUND, HTTP_SERVER_ERROR @@ -304,7 +304,7 @@ style = 'style' in req.form and req.form['style'][0] or self.style mapfile = templater.stylemap(style) - tmpl = templater.templater(mapfile, templatefilters.filters, + tmpl = templater.templater(mapfile, defaults={"header": header, "footer": footer, "motd": motd,