equal
deleted
inserted
replaced
195 return templater.templater.frommapfile(mapfile) |
195 return templater.templater.frommapfile(mapfile) |
196 return maketemplater(ui, topic, tmpl) |
196 return maketemplater(ui, topic, tmpl) |
197 |
197 |
198 def maketemplater(ui, topic, tmpl, filters=None, cache=None): |
198 def maketemplater(ui, topic, tmpl, filters=None, cache=None): |
199 """Create a templater from a string template 'tmpl'""" |
199 """Create a templater from a string template 'tmpl'""" |
200 t = templater.templater(filters=filters, cache=cache) |
200 aliases = ui.configitems('templatealias') |
|
201 t = templater.templater(filters=filters, cache=cache, aliases=aliases) |
201 if tmpl: |
202 if tmpl: |
202 t.cache[topic] = tmpl |
203 t.cache[topic] = tmpl |
203 return t |
204 return t |
204 |
205 |
205 def formatter(ui, topic, opts): |
206 def formatter(ui, topic, opts): |