Ejemplo n.º 1
0
 def cook(self, body):
     PageTemplateFile.cook(self, body)
     if self.macro:
         # render only the portion of the template included in a
         # define-macro named the value of self.macro
         macro_renderer = self.macros[self.macro].include
         self._render = macro_renderer
Ejemplo n.º 2
0
 def cook(self, body):
     PageTemplateFile.cook(self, body)
     if self.macro:
         # render only the portion of the template included in a
         # define-macro named the value of self.macro
         macro_renderer = self.macros[self.macro].include
         self._render = macro_renderer