且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

留着小胡子遍历数组

更新时间:2023-12-01 08:12:16

根据规范的changelog ,则在规范的v1.1.0中添加了隐式迭代器(.).每个至少实现v1.1.0的Mustache库都应支持此功能.

According to the spec's changelog, the implicit iterator (.) was added in v1.1.0 of the spec. Every Mustache library that implements at least v1.1.0 should support this.

{{#array_of_strings}}<li>{{.}}</li>{{/array_of_strings}}