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