Example #1
0
def render(path, options):
    tpl = PageTemplateFile(path, globals())
    ns = tpl.pt_getContext((), options)
    return tpl.pt_render(ns)
Example #2
0
 def pt_getContext(self, args=(), options={}, **kw):
     """Add our data into ZPT's defaults"""
     rval = PageTemplateFile.pt_getContext(self, args=args)
     options.update(rval)
     return options
Example #3
0
 def pt_getContext(self, args=(), options={}, **kw):
     """Add our data into ZPT's defaults"""
     rval = PageTemplateFile.pt_getContext(self, args=args)
     options.update(rval)
     return options
Example #4
0
 def pt_getContext(self, args=(), options={}, **kw):
     rval = PageTemplateFile.pt_getContext(self, args=args)
     options.update(rval)
     return options
def render(path, options):
    tpl = PageTemplateFile(path, globals())
    ns = tpl.pt_getContext((), options)
    return tpl.pt_render(ns)