Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 5976:9f1e6ab76069
templates: move filters to their own module
This eliminates just about all Mercurial dependencies in templater.py
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Jan 2008 14:44:19 -0600 |
parents | 1cd1582ef25f |
children | 948a41e77902 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Thu Jan 31 14:44:19 2008 -0600 +++ b/mercurial/hgweb/hgweb_mod.py Thu Jan 31 14:44:19 2008 -0600 @@ -9,7 +9,7 @@ import os, mimetypes, re from mercurial.node import * from mercurial import mdiff, ui, hg, util, archival, patch, hook -from mercurial import revlog, templater +from mercurial import revlog, templater, templatefilters from common import ErrorResponse, get_mtime, style_map, paritygen, get_contact from request import wsgirequest import webcommands, protocol @@ -288,7 +288,7 @@ # create the templater - tmpl = templater.templater(mapfile, templater.common_filters, + tmpl = templater.templater(mapfile, templatefilters.filters, defaults={"url": req.url, "staticurl": staticurl, "urlbase": urlbase,