ember-cli-htmlbars
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -24,3 +24,3 @@ var Filter = require('broccoli-filter'); | ||
if (this.HTMLBars) { | ||
return "export default " + compileSpec(string); | ||
return "var template = " + compileSpec(string) + "\nexport default template;"; | ||
} else { | ||
@@ -27,0 +27,0 @@ var input = handlbarsTemplateCompiler.precompile(string, false); |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,3 @@ 'use strict'; | ||
var source = fs.readFileSync(sourcePath + '/template.hbs', { encoding: 'utf8' }); | ||
var expected = "export default " + htmlbarsCompiler(source); | ||
var expected = "var template = " + htmlbarsCompiler(source) + "\nexport default template;"; | ||
@@ -31,0 +31,0 @@ assert.equal(actual,expected,'They dont match!') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193074