Comparing version 1.2.1 to 1.2.2
@@ -108,2 +108,6 @@ "use strict"; | ||
element: function(node, context) { | ||
if(!context.content) { | ||
throw node.unexpected; | ||
} | ||
var isVoid = voidTags.indexOf(node.name) !== -1; | ||
@@ -118,3 +122,3 @@ | ||
]), | ||
content: new OutputBuffer(), | ||
content: isVoid ? null : new OutputBuffer(), | ||
scope: context.scope, | ||
@@ -126,5 +130,3 @@ parent: context, | ||
if(isVoid) { | ||
console.log(this.content); | ||
} else { | ||
if(!isVoid) { | ||
this.parent.content.addBuffer(this.content); | ||
@@ -137,2 +139,6 @@ this.parent.content.addText("</" + node.name + ">"); | ||
string: function(node, context) { | ||
if(!context.content) { | ||
throw node.unexpected; | ||
} | ||
context.content.addInterpolated(node.content.code); | ||
@@ -139,0 +145,0 @@ }, |
{ | ||
"name": "razorleaf", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "razorleaf.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
28602
914