What are the differences between Mustache.js and Handlebars.js?

前端 未结 8 1517
心在旅途
心在旅途 2020-12-07 06:34

Major differences I\'ve seen are:

  • Handlebars adds #if, #unless, #with, and #each
  • Handlebars adds h
8条回答
  •  甜味超标
    2020-12-07 07:20

    —In addition to using "this" for handlebars, and the nested variable within variable block for mustache, you can also use the nested dot in a block for mustache:

        {{#variable}}{{.}}{{/variable}}
    

提交回复
热议问题