derby-parsing
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -20,3 +20,8 @@ var htmlUtil = require('html-util'); | ||
try { | ||
if (this.string) { | ||
if (this.literal) { | ||
var source = (this.unminified) ? this.source : | ||
// Remove leading and trailing whitespace only lines by default | ||
this.source.replace(/^\s*\n/, '').replace(/\s*$/, ''); | ||
template = new templates.Text(source); | ||
} else if (this.string) { | ||
template = createStringTemplate(this.source, this); | ||
@@ -127,3 +132,3 @@ } else { | ||
} else if (parseNode.content.length > 1) { | ||
var template = new templates.Template(parseNode.content); | ||
var template = new templates.Template(parseNode.content, value); | ||
attributesMap[key] = new templates.DynamicAttribute(template, nsUri); | ||
@@ -130,0 +135,0 @@ |
{ | ||
"name": "derby-parsing", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Add HTML template parsing to Derby", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
74618
1917