Skip to content

Commit

Permalink
Fix behavior when rendering lambda sections & add regression test
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 862e497

Please sign in to comment.