Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
19905:078ccd780b71 | 19906:1dba26575dba |
---|---|
329 if not staticurl.endswith('/'): | 329 if not staticurl.endswith('/'): |
330 staticurl += '/' | 330 staticurl += '/' |
331 | 331 |
332 # some functions for the templater | 332 # some functions for the templater |
333 | 333 |
334 def header(**map): | |
335 yield tmpl('header', encoding=encoding.encoding, **map) | |
336 | |
337 def footer(**map): | |
338 yield tmpl("footer", **map) | |
339 | |
340 def motd(**map): | 334 def motd(**map): |
341 yield self.config("web", "motd", "") | 335 yield self.config("web", "motd", "") |
342 | 336 |
343 # figure out which style to use | 337 # figure out which style to use |
344 | 338 |
371 "logourl": logourl, | 365 "logourl": logourl, |
372 "logoimg": logoimg, | 366 "logoimg": logoimg, |
373 "staticurl": staticurl, | 367 "staticurl": staticurl, |
374 "urlbase": urlbase, | 368 "urlbase": urlbase, |
375 "repo": self.reponame, | 369 "repo": self.reponame, |
376 "header": header, | 370 "encoding": encoding.encoding, |
377 "footer": footer, | |
378 "motd": motd, | 371 "motd": motd, |
379 "sessionvars": sessionvars, | 372 "sessionvars": sessionvars, |
380 "pathdef": makebreadcrumb(req.url), | 373 "pathdef": makebreadcrumb(req.url), |
381 }) | 374 }) |
382 return tmpl | 375 return tmpl |