Просмотр исходного кода

Documentation for Mustache says that {{> name}} is a reference to the partial 'name'. Mustache JS does not accept this rule.

tags/0.5.0-vsc
Sahab Yazdani 16 лет назад
Родитель
Сommit
0aa91dc2c3
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Просмотреть файл

@@ -164,7 +164,7 @@ var Mustache = function() {
regex = new_regex();
return "";
case ">": // render partial
return that.render_partial(name, context, partials);
return that.render_partial(name.replace(/^\s+/,""), context, partials);
case "{": // the triple mustache is unescaped
return that.find(name, context);
default: // escape the value


Загрузка…
Отмена
Сохранить