|
|
|
@@ -27,17 +27,6 @@ var Mustache; |
|
|
|
exports.Context = Context; |
|
|
|
exports.Writer = Writer; |
|
|
|
|
|
|
|
// This is here for backwards compatibility with 0.4.x. |
|
|
|
exports.to_html = function (template, view, partials, send) { |
|
|
|
var result = render(template, view, partials); |
|
|
|
|
|
|
|
if (typeof send === "function") { |
|
|
|
send(result); |
|
|
|
} else { |
|
|
|
return result; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
var whiteRe = /\s*/; |
|
|
|
var spaceRe = /\s+/; |
|
|
|
var nonSpaceRe = /\S/; |
|
|
|
@@ -597,6 +586,17 @@ var Mustache; |
|
|
|
return _writer.render(template, view, partials); |
|
|
|
}; |
|
|
|
|
|
|
|
// This is here for backwards compatibility with 0.4.x. |
|
|
|
exports.to_html = function (template, view, partials, send) { |
|
|
|
var result = exports.render(template, view, partials); |
|
|
|
|
|
|
|
if (typeof send === "function") { |
|
|
|
send(result); |
|
|
|
} else { |
|
|
|
return result; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
return exports; |
|
|
|
|
|
|
|
}()))); |