diff --git a/mustache.js b/mustache.js index 6bf4694..c3c9293 100644 --- a/mustache.js +++ b/mustache.js @@ -921,13 +921,13 @@ var Mustache = function() { renderer.render(template, {}, p); return function(view, send_func) { - view = view || {}; + view = [view || {}]; var o = send_func ? undefined : []; var s = send_func || function(output) { o.push(output); }; for (var i=0,n=commands.length; i