Ticket #1680: Pylons-expose-default-template.patch
| File Pylons-expose-default-template.patch, 0.7 kB (added by lmacken, 5 months ago) |
|---|
-
a/pylons/decorators/expose.py
old new 172 172 elif ':' in template: 173 173 engine, template = template.split(':', 1) 174 174 elif template: 175 #TODO: lookup the default template engine from the config. 176 engine, template = 'genshi', template 175 # Use the default templating engine from the config 176 from pylons import config 177 engine = config['buffet.template_engines'][0]['engine'] 177 178 else: 178 179 engine, template = None, None 179 180 if content_type is None: