[Zope3-Users] Re: Replacing Macros with Contentprovider

Philipp von Weitershausen philipp at weitershausen.de
Sat Sep 9 18:22:58 EDT 2006


Stephan Richter wrote:
> class ContentProvider(...):
> 
>     template = ViewPageTemplateFile('template.pt')
> 
>     def render(self):
>         return self.template()

Or even shorter:

     render = ViewPageTemplateFile('template.pt')

:)



More information about the Zope3-users mailing list