Socket
Socket
Sign inDemoInstall

ember-cli-htmlbars

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-htmlbars - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

compile.js

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc