mercurial/hgweb/hgwebdir_mod.py
changeset 19906 1dba26575dba
parent 19032 7d31f2e42a8a
child 20253 43cfad930d38
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Aug 16 21:41:19 2013 +0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Wed Jul 24 03:20:26 2013 +0400
@@ -408,12 +408,6 @@
 
     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 @@
             staticurl += '/'
 
         tmpl = templater.templater(mapfile,
-                                   defaults={"header": header,
-                                             "footer": footer,
+                                   defaults={"encoding": encoding.encoding,
                                              "motd": motd,
                                              "url": url,
                                              "logourl": logourl,