hgweb: evaluate the "default" value as template
Strictly speaking, everything in the map file is a template. So let's not
take out an unparsed template string.
--- a/mercurial/hgweb/hgweb_mod.py Fri Mar 16 21:39:32 2018 +0900
+++ b/mercurial/hgweb/hgweb_mod.py Sun Apr 03 14:16:47 2016 +0900
@@ -386,7 +386,7 @@
self.check_perm(rctx, req, None)
if cmd == '':
- req.qsparams['cmd'] = rctx.tmpl.cache['default']
+ req.qsparams['cmd'] = rctx.tmpl.render('default', {})
cmd = req.qsparams['cmd']
# Don't enable caching if using a CSP nonce because then it wouldn't