For your described needs, you should not be using "render" multiple times. Mako supports the following:
* Defs and Blocks - http://docs.makotemplates.org/en/latest/defs.html * Template Inheritance - http://docs.makotemplates.org/en/latest/inheritance.html * Template Namespace and Inclusion: http://docs.makotemplates.org/en/latest/namespaces.html Other templating systems offer similar hooks. You should, ideally, handle all rendering within the templating framework. IMHO, you should avoid invoking `render` more than once in a given request unless you are very familiar/advanced with Pyramid. Calls to `render` are hooked into Pyramid's events system (via the BeforeRender event subscriber), so you can trigger unintended consequences. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
