from zope.publisher.browser import BrowserView from zope.app.pagetemplate import ViewPageTemplateFile from zope.app.basicskin.standardmacros import StandardMacros as BaseMacros class MinimalLayout(BrowserView): template = ViewPageTemplateFile('templates/minimal_template.pt') def __getitem__(self, key): return self.template.macros[key] class FullLayout(BrowserView): template = ViewPageTemplateFile('templates/full_template.pt') def __getitem__(self, key): return self.template.macros[key] class MinimalMacros(BaseMacros): macro_pages = ('minimal_layout', ) class FullMacros(BaseMacros): macro_pages = ('full_layout', )