Exemple #1
0
 def render(self,
            info,
            format=None, #ignored
            fragment=None, #ignored
            template=None):
     "Renders the template to a string using the provided info."
     info=info.copy()
     if template is None:
         template=getTemplatePath()
     if self.extra_vars_func:
         info.update(self.extra_vars_func())
     return call_component(template,
                           info,
                           'string',
                           **self.options)