Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 19906:1dba26575dba
hgweb: remove now unnecessary explicit header() and footer()
They became unnecessary after allowing custom-named entries in templates.
author | Alexander Plavin <alexander@plav.in> |
---|---|
date | Wed, 24 Jul 2013 03:20:26 +0400 |
parents | 60e060f4faa9 |
children | 1e5b38a919dd d4be314b2071 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Aug 16 21:41:19 2013 +0400 +++ b/mercurial/hgweb/hgweb_mod.py Wed Jul 24 03:20:26 2013 +0400 @@ -331,12 +331,6 @@ # some functions for the templater - def header(**map): - yield tmpl('header', encoding=encoding.encoding, **map) - - def footer(**map): - yield tmpl("footer", **map) - def motd(**map): yield self.config("web", "motd", "") @@ -373,8 +367,7 @@ "staticurl": staticurl, "urlbase": urlbase, "repo": self.reponame, - "header": header, - "footer": footer, + "encoding": encoding.encoding, "motd": motd, "sessionvars": sessionvars, "pathdef": makebreadcrumb(req.url),