Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 7107:125c8fedcbe0
Allow hgweb to search for templates in more than one path.
This patch is constructed to make it easy for external extensions to
provide their own templates, by updating templater.path.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 17 Oct 2008 11:34:31 -0700 |
parents | 2cfdabe235fb |
children | 59b4ae211584 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sun Oct 05 21:35:26 2008 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Oct 17 11:34:31 2008 -0700 @@ -84,11 +84,11 @@ # a static file if virtual.startswith('static/') or 'static' in req.form: - static = os.path.join(templater.templatepath(), 'static') if virtual.startswith('static/'): fname = virtual[7:] else: fname = req.form['static'][0] + static = templater.templatepath('static') return staticfile(static, fname, req) # top-level index