我怎样才能做一个;至于;(循环)在html中,在python 3.4中使用变色龙和金字塔?
如何在我的html中使用变色龙和金字塔创建循环? 我搜索了一下,但没有找到这样的东西=/ 在这种情况下,javascript更容易使用吗? 我在MACADMIN(引导主题)中使用datatable我怎样才能做一个;至于;(循环)在html中,在python 3.4中使用变色龙和金字塔?,python,python-3.x,pyramid,chameleon,template-tal,Python,Python 3.x,Pyramid,Chameleon,Template Tal,如何在我的html中使用变色龙和金字塔创建循环? 我搜索了一下,但没有找到这样的东西=/ 在这种情况下,javascript更容易使用吗? 我在MACADMIN(引导主题)中使用datatable 渲染引擎 浏览器 月台 引擎版本 CSS等级 也许放在这里?如{“表”中的x项} {orgao_doc[x].nome} {orgao_doc[x].货物} {orgao_doc[x].coleta} {orgao_doc[x].电子邮件} {orgao_doc[x].endereco} 在给定序列
渲染引擎
浏览器
月台
引擎版本
CSS等级
也许放在这里?如{“表”中的x项}
{orgao_doc[x].nome}
{orgao_doc[x].货物}
{orgao_doc[x].coleta}
{orgao_doc[x].电子邮件}
{orgao_doc[x].endereco}
在给定序列的情况下,使用a重复模板的各个部分:
${item.nome}
${item.cargo}
${item.coleta}
${item.email}
${item.endereco}
标记会重复插入到输出中,对于orgao\u doc
中的每个元素,插入一次。当呈现模板的这一部分时,名称项
绑定到每个元素。我在变色龙的文档中看到了“tal”,我不明白。谢谢,这很好,但是我需要在{item.nome}之前加上$,就像${item.nome}
<div class="table-responsive">
<table cellpadding="0" cellspacing="0" border="0" id="data-table" width="100%">
<thead>
<tr>
<th>
Rendering engine
</th>
<th>
Browser
</th>
<th>
Platform(s)
</th>
<th>
Engine version
</th>
<th>
CSS grade
</th>
</tr>
</thead>
<tbody>
Maybe put FOR here? like {for x items in "TABLE"}
<tr>
<td>
{orgao_doc[x].nome}
</td>
<td>
{orgao_doc[x].cargo}
</td>
<td>
{orgao_doc[x].coleta}
</td>
<td>
{orgao_doc[x].email}
</td>
<td>
{orgao_doc[x].endereco}
</td>
</tr>
</tbody>
</table>
<div class="clearfix">
</div>
</div>