Hello,

I got a problem with 2 kid-templates:
My "main"-template I load in all my files: "master.kid"
<html xmlns:py="http://purl.org/kid/ns#";
xmlns="http://www.w3.org/1999/xhtml";>
<head py:match="item.tag == 'head'" py:attrs="item.items()">
<meta content="text/xml; charset=UTF-8" http-equiv="content-type" />
<script py:def="load_js(seq)" py:for="js in seq"
py:attrs="{'src': '/static/javascript/' + js, 'type': 'text/javascript'}" />
<link py:def="load_css(seq)" py:for="css in seq"
py:attrs="{'href': '/static/css/' + css, 'type': 'text/css',
'rel': 'stylesheet'}" />
${load_css(['main.css', 'menu.css'])}
<meta py:replace="[item.text] + item[:]" />
</head>
<body py:match="item.tag=='body'" py:attrs="item.items()">
[... menu ...]
<div py:replace="[item.text] + item[:]" />
</body>
</html>


the template I load from the controllers.py: "overview.kid"
<html
xmlns:py="http://purl.org/kid/ns#";
xmlns="http://www.w3.org/1999/xhtml";
py:extends="'master.kid'">
<head>
<title>${page_title}</title>
${load_css(['overview.css'])}
${load_js(['main.js'])}
</head>
<body>
<div class="foo"> [...]
</div>
</body>
</html>

It seems that the content of the master.kid is totally ignored, but it
creates
the correct html-tags for 'main.js' and overview.css.
when I delete 'xmlns="http://www.w3.org/1999/xhtml";'from the html-tag kid
creates the complete website, but it closes all tags with an end-tag
(<br></br> instead of <br />, so the IE interprets this as 2 linebreaks).

Does anyone know how to fix this?

Thanks in advance,

Andreas Bresser

(p.s. I am not sure, if this is a turbogears or kid problem... I hope I
send this mail to the right ml)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to