diff --git a/lib/setup.js b/lib/setup.js index 2a46b9c..b1ad0be 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -65,7 +65,9 @@ function registerPartials(items) { // Compile all the loaded partials _.forIn(hbs.partials, function (value, key) { if (_.isString(value)) { - hbs.partials[key] = hbs.compile(value); + // preventIndent:true solve issue with
 tag/white-space: pre
+      // see http://handlebarsjs.com/reference.html compile() options
+      hbs.partials[key] = hbs.compile(value, { preventIndent: true });
     }
   });