Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix behavior when rendering lambda sections & add regression test
The `render` argument passed to a `function (text, render)` lambda function was not accounting for custom tags or other configuration. This issue has been fixed and a regression test has been added for this case.
  • Loading branch information
pineapplemachine authored and phillipj committed Oct 22, 2020
1 parent 37fdf81 commit 862e497
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mustache.js
Expand Up @@ -597,7 +597,7 @@
// This function is used to render an arbitrary template
// in the current context by higher-order sections.
function subRender (template) {
return self.render(template, context, partials);
return self.render(template, context, partials, config);
}

if (!value) return;
Expand Down

0 comments on commit 862e497

Please sign in to comment.