equal
deleted
inserted
replaced
235 v = context.process(key, mapping) |
235 v = context.process(key, mapping) |
236 except TemplateNotFound: |
236 except TemplateNotFound: |
237 v = '' |
237 v = '' |
238 if callable(v): |
238 if callable(v): |
239 return v(**mapping) |
239 return v(**mapping) |
240 if isinstance(v, types.GeneratorType): |
|
241 v = list(v) |
|
242 return v |
240 return v |
243 |
241 |
244 def buildtemplate(exp, context): |
242 def buildtemplate(exp, context): |
245 ctmpl = [compileexp(e, context, methods) for e in exp[1]] |
243 ctmpl = [compileexp(e, context, methods) for e in exp[1]] |
246 if len(ctmpl) == 1: |
244 if len(ctmpl) == 1: |