Comparing version 0.9.5 to 0.9.6
{ | ||
"name": "razorleaf", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"main": "razorleaf.js", | ||
@@ -5,0 +5,0 @@ "files": ["razorleaf.js"], |
@@ -514,7 +514,11 @@ "use strict"; | ||
if(child.type === "attribute") { | ||
if(child.value.interpolated) { | ||
utilities.push("__escapeAttributeValue"); | ||
if(child.value === null) { | ||
startTag += " " + child.name; | ||
} else { | ||
if(child.value.interpolated) { | ||
utilities.push("__escapeAttributeValue"); | ||
} | ||
startTag += " " + child.name + "=\"" + child.value.toAttributeValue() + "\""; | ||
} | ||
startTag += " " + child.name + "=\"" + child.value.toAttributeValue() + "\""; | ||
} else if(child.type === "element") { | ||
@@ -521,0 +525,0 @@ var staticMarkup = compileStatic(child); |
17192
510