Hi all,
another problem i stumbled upon.
I use the following layout:
<html xmlns:py="http://purl.org/kid/ns#">
<head>
<title>ATF - ${page_title}</title>
</head>
<body>
<div id="sectionimage">
<img src="/img/${sectionImage}.png" alt="${pageTitle}"
height="50" />
</div>
<content>Default Content</content>
<div id="messagebox" py:if="len(messages) > 0">
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
<p>Messsage</p>
</div>
</body>
</html>
where <content> is replaced by content of other templates:
<?python
layout_params['page_title'] = "Scheduler"
?>
<html py:layout="'template.kid'"
xmlns:py="http://purl.org/kid/ns#">
<div py:match="item.tag == 'content'" class="content">
Hello World
</div>
</html>
What I would like to do is to pass the messages list to the master template
without having to specify it each time as it is always the same variable.
Can this be achieved in kid?
Thanks,
Filip
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss