Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix renderer to not pop the context too early

  • Loading branch information...
commit c27fbedd86c3545e1d08b84f9ffe76fde2358438 1 parent 9b12fd0
@raycmorgan authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/mu/renderer.js
  2. +1 −1  package.json
View
6 lib/mu/renderer.js
@@ -156,8 +156,10 @@ function section(context, name, val, tokens, partials, stream, callback) {
if (typeof val === 'object') {
context.push(val);
- _render(tokens, context, partials, stream, callback);
- context.pop();
+ _render(tokens, context, partials, stream, function () {
+ context.pop();
+ callback();
+ });
return;
}
View
2  package.json
@@ -1,7 +1,7 @@
{ "name": "mu2"
, "description": "A Mustache template engine for Node.js"
, "keywords": ["template", "mustache"]
-, "version" : "0.5.11"
+, "version" : "0.5.12"
, "homepage": "http://github.com/raycmorgan/mu"
, "author" : "RayMorgan <ray@rumgr.com>"
, "main" : "lib/mu"
Please sign in to comment.
Something went wrong with that request. Please try again.