Show More
@@ -27,6 +27,7 b' from .. import (' | |||
|
27 | 27 | hook, |
|
28 | 28 | profiling, |
|
29 | 29 | pycompat, |
|
30 | registrar, | |
|
30 | 31 | repoview, |
|
31 | 32 | templatefilters, |
|
32 | 33 | templater, |
@@ -170,6 +171,9 b' class requestcontext(object):' | |||
|
170 | 171 | or req.apppath |
|
171 | 172 | or self.repo.root) |
|
172 | 173 | |
|
174 | filters = {} | |
|
175 | templatefilter = registrar.templatefilter(filters) | |
|
176 | @templatefilter('websub') | |
|
173 | 177 | def websubfilter(text): |
|
174 | 178 | return templatefilters.websub(text, self.websubtable) |
|
175 | 179 | |
@@ -191,7 +195,7 b' class requestcontext(object):' | |||
|
191 | 195 | } |
|
192 | 196 | tres = formatter.templateresources(self.repo.ui, self.repo) |
|
193 | 197 | tmpl = templater.templater.frommapfile(mapfile, |
|
194 |
filters= |
|
|
198 | filters=filters, | |
|
195 | 199 | defaults=defaults, |
|
196 | 200 | resources=tres) |
|
197 | 201 | return tmpl |
General Comments 0
You need to be logged in to leave comments.
Login now