Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-templates-loader

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-templates-loader

Load templates into Ember with webpack.

  • 2.14.1-1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by162.5%
Maintainers
3
Weekly downloads
 
Created
Source

ember-templates-loader

Load templates into Ember with webpack.

Description

This will precompile your HTMLBars templates when you build with webpack with overrides specific for Ember.

Usage

var MyView = Ember.View.extend({
  template: require('ember-templates!./templates/my-view.hbs')
});

Or better within your webpack.config.js:

module.exports = {
  module: {
    loaders: [
      { test: /\.hbs$/, loader: 'ember-templates' }
    ]
  },
  emberTemplatesLoader: {
    // Where to require the compiler from, defaults to an internal compiler.
    compiler: 'ember/ember-template-compiler',
    // OR: Pass in the precompiler directly...
    // precompile: require('ember/ember-template-compiler').precompile,
  }
};

Now all required handlebars templates will be compiled for Ember first.

Install

npm install ember-templates-loader --save-dev

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

Release History

  • 1.12.0 - Marks the start of versioning in sync with Ember - the template compiler is required to match the version of Ember.
  • 1.3.1 - Remove napa from install in package.json
  • 1.3.0 - Include ember-template-compiler directly instead of using napa.
  • 1.2.0 - Wrap template in Ember.HTMLBars.template()
  • 1.1.0 - Support for Ember 1.10 and HTMLBars
  • 1.0.1 - Include ember-template-compiler in package.json (@mzgoddard)
  • 1.0.0 - Update to Handlebars 2.0 and template compiler for Ember 1.9 (@mzgoddard)
  • 0.2.0 - Precompile templates for Ember and publish

License

Copyright (c) 2017 Kyle Robinson Young
Licensed under the MIT license.

Keywords

FAQs

Package last updated on 31 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc