Django Book 翻译
菜单>:
TOC
返回
原文:
In the examples so far, weve passed simple values in the contextsmostly strings, plus a ``datetime.date`` example. However, the template system elegantly handles more complex data structures, such as lists, dictionaries, and custom objects.
翻译:
在到目前为止的例子中,我们通过 context 传递的简单参数值主要是字符串,还有一个 ``datetime.date`` 范例。然而,模板系统能够非常简洁地处理更加复杂的数据结构,例如list、dictionary和自定义的对象。
备注:
译者: