<div>i do it in another way:</div>
<div>&nbsp;</div>
<div>i have a BasePage class - which is a skeleton for other Pages:</div>
<div>&nbsp;</div>
<div>class BasePage(rend.Page):<br>&nbsp;&nbsp;&nbsp; __implements__ = rend.Page.__implements__<br>&nbsp;&nbsp;&nbsp; TITLE = &quot;Common Page&quot;<br>&nbsp;&nbsp;&nbsp; docFactory = loaders.xmlfile(&quot;_tpl/common/page.xml&quot;)<br>&nbsp;&nbsp;&nbsp; def render_title(self, ctx, data):
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.fillSlots(&quot;title&quot;, self.TITLE)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ctx.tag<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; def render_content(self, ctx, data):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raise NotImplementedError, &quot;You MUST overload render_content() method!!!&quot;
</div>
<div>&nbsp;</div>
<div>And&nbsp; BasePage tremplate:</div>
<div>&nbsp;</div>
<div>&lt;html&gt;</div>
<div>...metas</div>
<div>&lt;body&gt;</div>
<div>&nbsp;</div>
<div>...layout</div>
<div>&nbsp;</div>
<div>&lt;n:invisible n:render=&quot;content&quot; /&gt;<br>&nbsp;</div>
<div>&lt;/body&gt;</div>
<div>&lt;/html&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>And then all of the site&nbsp;pages are using this prototype:</div>
<div>&nbsp;</div>
<div>
<p>class Root(common.BasePage):<br>&nbsp;&nbsp;&nbsp; def render_content(self, ctx, data):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return loaders.xmlfile(&quot;_tpl/root.xml&quot;) </p>
<p>i can return ANY xml-temlate i'd like :)</p>
<p>for example a form or a &quot;form submitted successful&quot; message</p>
<p>&nbsp;</p></div>
<div>&nbsp;</div>
<div>&nbsp;</div>