【发布时间】:2011-07-19 15:57:16
【问题描述】:
我一直在使用--非常出色--playframework,但在查找有关如何使用 play 的模板引擎从视图访问 Map 数据结构的文档/示例时遇到了麻烦。
更具体地说,我希望在遍历对象列表时访问地图,例如,
#{list items:itemList, as:'item'}
// access the map value using the ${item?.id} as the key
#{/list}
感谢观看。
【问题讨论】:
标签: groovy playframework