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

Don't join and return the buffer with custom send functions.

tags/0.2.3
Jan Lehnardt 16 лет назад
Родитель
Сommit
3944cfc8cc
1 измененных файлов: 3 добавлений и 1 удалений
  1. +3
    -1
      mustache.js

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

@@ -286,7 +286,9 @@ var Mustache = function() {
renderer.send = send_fun; renderer.send = send_fun;
} }
renderer.render(template, view, partials); renderer.render(template, view, partials);
return renderer.buffer.join("\n");
if(!send_fun) {
return renderer.buffer.join("\n");
}
} }
}); });
}(); }();

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