from Products.Five.browser import BrowserView #from zope.app.pagetemplate import ViewPageTemplateFile from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile class PageMacro(BrowserView): template = ViewPageTemplateFile('templates/main/page_macro.pt') def __getitem__(self, key): return self.template.macros[key] class Macros(BrowserView): template = ViewPageTemplateFile('templates/main/macros.pt') def __getitem__(self, key): return self.template.macros[key]