But I haven't been able to set the basetemplate variable from a client.
Example which does *not* work:
# middle.mako
## I want basetemplate to be preset somehow
<%inherit file="${basetemplate}"/>
# client.mako
## DOES NOT WORK, is not seen by middle.mako
## (because technically "<%!" is module-level)
<%! basetemplate = "base2.mako" %>
<%inherit file="middle.mako"/>
Have a nice day
Jens Stimpfle
Michael Bayer
unread,
Feb 5, 2013, 11:06:05 AM2/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mako-d...@googlegroups.com
sorry, missed this email
you can access the runtime namespace in <%inherit> by referring to "context" directly: