You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ember-cli-htmlbars-inline-precompile

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-htmlbars-inline-precompile

The default blueprint for ember-cli addons.

0.0.1
Source
npmnpm
Version published
Weekly downloads
78K
-19.3%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

ember-addon

FAQs

Package last updated on 05 May 2015

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