Explorar el Código

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

tags/0.2.3
Jan Lehnardt hace 16 años
padre
commit
3944cfc8cc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      mustache.js

+ 3
- 1
mustache.js Ver fichero

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

Cargando…
Cancelar
Guardar