Show More
@@ -147,6 +147,9 b' def gettemplate(exp, context):' | |||||
147 | if exp[0] == 'template': |
|
147 | if exp[0] == 'template': | |
148 | return compiletemplate(exp[1], context) |
|
148 | return compiletemplate(exp[1], context) | |
149 | if exp[0] == 'symbol': |
|
149 | if exp[0] == 'symbol': | |
|
150 | # unlike runsymbol(), here 'symbol' is always taken as template name | |||
|
151 | # even if it exists in mapping. this allows us to override mapping | |||
|
152 | # by web templates, e.g. 'changelogtag' is redefined in map file. | |||
150 | return context._load(exp[1]) |
|
153 | return context._load(exp[1]) | |
151 | raise error.ParseError(_("expected template specifier")) |
|
154 | raise error.ParseError(_("expected template specifier")) | |
152 |
|
155 |
General Comments 0
You need to be logged in to leave comments.
Login now