📜  jinja 表模板 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:13.581000             🧑  作者: Mango

代码示例3
items = []
for i in range(1, 11):
    i = str(i)

    # dict == {}
    # you just don't have to quote the keys
    an_item = dict(date="2012-02-" + i, id=i, position="here", status="waiting")
    items.append(an_item)

# ... your code here ...

template.render(items=items)