JSPM

  • Created
  • Published
  • Downloads 75976
  • Score
    100M100P100Q35850F
  • License MIT

The default blueprint for ember-cli addons.

Package Exports

  • ember-cli-htmlbars-inline-precompile

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-cli-htmlbars-inline-precompile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ember-cli-htmlbars-inline-precompile

Build Status

Precompile HTMLBars template strings within the tests of an Ember-CLI project via ES6 tagged template strings:

// ember-cli-project/test/unit/components/my-component-test.js
import precompile from 'htmlbars-inline-precompile';
import { moduleForComponent, test } from 'ember-qunit';

moduleForComponent('my-component');

test('it renders', function(assert) {
  var component = this.subject({
    greeting: "hello ember testing",
    layout: precompile`greeting: {{greeting}}`
  });

  assert.equal(this.$().text().trim(), "greeting: hello ember testing");
});

where the addon is installed via ember install ember-cli-htmlbars-inline-precompile.