render undefined to ''

This commit is contained in:
harttle
2016-06-26 12:52:37 +08:00
parent a0feabce5b
commit a482b4abe5
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ var render = {
break;
case 'output':
var val = this.evalOutput(template, scope);
html += stringify(val);
html += val === undefined ? '' : stringify(val);
}
});
return html;