diff --git a/dist/lib/svg_image.js b/dist/lib/svg_image.js index f183e91..af35ae0 100644 --- a/dist/lib/svg_image.js +++ b/dist/lib/svg_image.js @@ -103,7 +103,9 @@ })(this)); this._checkSVG(doc); doc = new xmldom.XMLSerializer().serializeToString(doc); - return this.template = doT.template(doc); + return this.template = doT.template(doc, _.extend(doT.templateSettings, { + strip: false + })); }; SVGImage.prototype._checkSVG = function(doc) { diff --git a/lib/svg_image.coffee b/lib/svg_image.coffee index 6ec76bb..c241b62 100644 --- a/lib/svg_image.coffee +++ b/lib/svg_image.coffee @@ -61,7 +61,7 @@ class SVGImage @_checkSVG(doc) doc = new xmldom.XMLSerializer().serializeToString(doc) - @template = doT.template(doc) + @template = doT.template(doc, _.extend(doT.templateSettings, { strip: false })) _checkSVG: (doc) -> if !(Object.keys(@colors).length > 0)