- ## child/update.mako - this is the template we want to render
- <%namespace name="base" file="child/init.mako"/>
- <%include file="parent/update.mako"/>
- ## child/init.mako
- <%namespace name="base" file="child/map.mako"/>
- <%namespace name="base" file="parent/map.mako"/>
- ## child/map.mako
- <%
- name = 'some name'
- %>
- ## parent/map.mako
- <%
- full_name = base.attr.name + 'with some more name' ## this goes through without any problem
- %>
- ## parent/update.mako
- ${ base.attr.full_name } ## base is undefined here
SHARE
TWEET
mako namespace on include
a guest
Nov 24th, 2015
7
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
