From fdfc48a34fdd40862eaa5194221f3acf7c516696 Mon Sep 17 00:00:00 2001 From: Felipe Toscano Date: Fri, 21 Feb 2020 23:55:48 -0300 Subject: [PATCH] Change Mustache to_html to render Mustache new version don't find to_html anymore. I think they change the nemo of function to "render". I changed in my project and have success using the new version of Mustache. --- lib/plugins/sammy.mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/sammy.mustache.js b/lib/plugins/sammy.mustache.js index 1f5ff091..9fe86dcd 100644 --- a/lib/plugins/sammy.mustache.js +++ b/lib/plugins/sammy.mustache.js @@ -113,7 +113,7 @@ var mustache = function(template, data, partials) { data = $.extend({}, this, data); partials = $.extend({}, data.partials, partials); - return Mustache.to_html(template, data, partials); + return Mustache.render(template, data, partials); }; // set the default method name/extension