diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -331,12 +331,6 @@ class hgweb(object): # 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 @@ class hgweb(object): "staticurl": staticurl, "urlbase": urlbase, "repo": self.reponame, - "header": header, - "footer": footer, + "encoding": encoding.encoding, "motd": motd, "sessionvars": sessionvars, "pathdef": makebreadcrumb(req.url), diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -408,12 +408,6 @@ class hgwebdir(object): def templater(self, req): - def header(**map): - yield tmpl('header', encoding=encoding.encoding, **map) - - def footer(**map): - yield tmpl("footer", **map) - def motd(**map): if self.motd is not None: yield self.motd @@ -448,8 +442,7 @@ class hgwebdir(object): staticurl += '/' tmpl = templater.templater(mapfile, - defaults={"header": header, - "footer": footer, + defaults={"encoding": encoding.encoding, "motd": motd, "url": url, "logourl": logourl,