In Mustache, How to get the index of the current Section

前端 未结 13 1099
臣服心动
臣服心动 2020-12-13 03:52

I am using Mustache and using the data

{ \"names\": [ {\"name\":\"John\"}, {\"name\":\"Mary\"} ] }

My mustache template is:



        
13条回答
  •  清歌不尽
    2020-12-13 04:20

    
    {{#names}}
        {{name}} is 
    {{/names}}
    

    This works perfectly fine.

提交回复
热议问题