it seems that mako can't inherit from an object so you have to pass a file
uri and then it has to load the template while jinja2 and chameleon can
extends or use the object. Or there is a better way to inherit or extends
in mako? But you're right it feels a bit odd to do this while the object is
already there.
On Saturday, December 10, 2016 at 11:01:45 PM UTC-5, Mike Orr wrote:
>
> Also, is the Mako usage really as inefficient as it looks?
>
> <%inherit file="${context['main_template'].uri}"/>
>
> It looks like it already has the main template object, converts it to
> a URI, and then Mako has to look it up agan to get the same template
> object it already has. Is this an incompatibility between
> pyramid_layout and Mako that requires this kludge? Does it suggest
> they don't really go together?
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pylons-discuss/a8d98dc2-99b8-481c-b1d3-0ff30d9dce79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.