equal
deleted
inserted
replaced
1301 def render(self, mapping): |
1301 def render(self, mapping): |
1302 """Render the default unnamed template and return result as string""" |
1302 """Render the default unnamed template and return result as string""" |
1303 return stringify(self('', **mapping)) |
1303 return stringify(self('', **mapping)) |
1304 |
1304 |
1305 def __call__(self, t, **mapping): |
1305 def __call__(self, t, **mapping): |
|
1306 mapping = pycompat.byteskwargs(mapping) |
1306 ttype = t in self.map and self.map[t][0] or 'default' |
1307 ttype = t in self.map and self.map[t][0] or 'default' |
1307 if ttype not in self.ecache: |
1308 if ttype not in self.ecache: |
1308 try: |
1309 try: |
1309 ecls = engines[ttype] |
1310 ecls = engines[ttype] |
1310 except KeyError: |
1311 except KeyError: |