Чем отличаются Mustache.js от Handlebars.js?
Основные различия, которые я видел:
Handlebars adds#if
, #unless
, #with
, and #each
Handlebars adds helpers
Handlebars templates are compiled (Mustache can be too)
Handlebars supports paths
Allows use of {{this}}
in blocks (which outputs the current item's string value)
Handlebars.SafeString()
(and maybe some other methods)
Handlebars is 2 to 7 times faster
Mustache supports inverted sections (i.e. if !x ...
)
(Пожалуйста, исправьте меня, если я ошибаюсь с вышесказанным.)
Есть ли другие важные различия, которые я пропускаю?