ember-cli-htmlbars
Advanced tools
Comparing version 0.5.0 to 0.5.1
12
index.js
var Filter = require('broccoli-filter'); | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var compileSpec = require('htmlbars').compileSpec; | ||
var handlbarsTemplateCompiler = require('ember-template-compiler'); | ||
var compile = require('./compile'); | ||
@@ -25,10 +22,5 @@ function TemplateCompiler (inputTree, options) { | ||
TemplateCompiler.prototype.processString = function (string, relativePath) { | ||
if (this.htmlbarsOptions) { | ||
return "export default Ember.HTMLBars.template(" + compileSpec(string, this.htmlbarsOptions) + ");"; | ||
} else { | ||
var input = handlbarsTemplateCompiler.precompile(string, false); | ||
return "export default Ember.Handlebars.template(" + input + ")"; | ||
} | ||
return compile(string, this.htmlbarsOptions); | ||
} | ||
module.exports = TemplateCompiler; |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10125
13
238
1