|
|
|
@@ -665,7 +665,6 @@ var mustache = { |
|
|
|
escape: undefined, |
|
|
|
parse: undefined, |
|
|
|
render: undefined, |
|
|
|
to_html: undefined, |
|
|
|
Scanner: undefined, |
|
|
|
Context: undefined, |
|
|
|
Writer: undefined, |
|
|
|
@@ -720,20 +719,6 @@ mustache.render = function render (template, view, partials, tags) { |
|
|
|
return defaultWriter.render(template, view, partials, tags); |
|
|
|
}; |
|
|
|
|
|
|
|
// This is here for backwards compatibility with 0.4.x., |
|
|
|
/*eslint-disable */ // eslint wants camel cased function name |
|
|
|
mustache.to_html = function to_html (template, view, partials, send) { |
|
|
|
/*eslint-enable*/ |
|
|
|
|
|
|
|
var result = mustache.render(template, view, partials); |
|
|
|
|
|
|
|
if (isFunction(send)) { |
|
|
|
send(result); |
|
|
|
} else { |
|
|
|
return result; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
// Export the escaping function so that the user may override it. |
|
|
|
// See https://github.com/janl/mustache.js/issues/244 |
|
|
|
mustache.escape = escapeHtml; |
|
|
|
|