You are not logged in.

#1 2006-03-28 19:37:57

cmp
Member
Registered: 2005-01-03
Posts: 350

Python: Kid and HTML Entites

Hi.
I'm currently looking into kid and think it's very nice, but I got a simple problem, I need to render a table with lots of cells containing only  , but kid removes all the  .

I hope you got an idea why.

Sourcecode:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
<head/>
<body>
<table id="map" style="width:500px">
<tr py:for="row in map">
    <td py:for="field in row" id="f_${field.x}_${field.y}" class="wall${field.wall} ${field.style}">
             
    </td>
</tr>
</table>
</body>
</html>

Part of the Result:

<tr>
    <td id="f_0_(0, 0)" class="wall8 grass"/>
    <td id="f_1_(0, 0)" class="wall0 grass"/>
    <td id="f_2_(0, 0)" class="wall0 grass"/>
    <td id="f_3_(0, 0)" class="wall0 grass"/>
    <td id="f_4_(0, 0)" class="wall2 grass"/>
</tr>

Offline

Board footer

Powered by FluxBB