{
  "_args": [
    [
      {
        "raw": "babel-plugin-htmlbars-inline-precompile@^0.2.3",
        "scope": null,
        "escapedName": "babel-plugin-htmlbars-inline-precompile",
        "name": "babel-plugin-htmlbars-inline-precompile",
        "rawSpec": "^0.2.3",
        "spec": ">=0.2.3 <0.3.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli-htmlbars-inline-precompile"
    ]
  ],
  "_from": "babel-plugin-htmlbars-inline-precompile@>=0.2.3 <0.3.0",
  "_id": "babel-plugin-htmlbars-inline-precompile@0.2.3",
  "_inCache": true,
  "_location": "/babel-plugin-htmlbars-inline-precompile",
  "_nodeVersion": "7.1.0",
  "_npmOperationalInternal": {
    "host": "packages-12-west.internal.npmjs.com",
    "tmp": "tmp/babel-plugin-htmlbars-inline-precompile-0.2.3.tgz_1489416387469_0.6504964565392584"
  },
  "_npmUser": {
    "name": "rwjblue",
    "email": "me@rwjblue.com"
  },
  "_npmVersion": "3.10.9",
  "_phantomChildren": {},
  "_requested": {
    "raw": "babel-plugin-htmlbars-inline-precompile@^0.2.3",
    "scope": null,
    "escapedName": "babel-plugin-htmlbars-inline-precompile",
    "name": "babel-plugin-htmlbars-inline-precompile",
    "rawSpec": "^0.2.3",
    "spec": ">=0.2.3 <0.3.0",
    "type": "range"
  },
  "_requiredBy": [
    "/ember-cli-htmlbars-inline-precompile"
  ],
  "_resolved": "https://registry.npmjs.org/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-0.2.3.tgz",
  "_shasum": "cd365e278af409bfa6be7704c4354beee742446b",
  "_shrinkwrap": null,
  "_spec": "babel-plugin-htmlbars-inline-precompile@^0.2.3",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli-htmlbars-inline-precompile",
  "author": {
    "name": "Clemens Müller",
    "email": "cmueller.418@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile/issues"
  },
  "dependencies": {},
  "description": "Babel plugin to replace tagged template strings with precompiled HTMLBars templates",
  "devDependencies": {
    "babel-core": "^6.7.4",
    "babel-plugin-transform-es2015-modules-amd": "^6.24.0",
    "babel-plugin-transform-es2015-template-literals": "^6.22.0",
    "mocha": "^3.0.2"
  },
  "directories": {},
  "dist": {
    "shasum": "cd365e278af409bfa6be7704c4354beee742446b",
    "tarball": "https://registry.npmjs.org/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-0.2.3.tgz"
  },
  "engines": {
    "node": ">= 4"
  },
  "gitHead": "394f9ebf592b7b6b52e66dc1fc414bbe9551c0cb",
  "homepage": "https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#readme",
  "license": "MIT",
  "maintainers": [
    {
      "name": "ember-cli",
      "email": "stefan.penner+ember-cli@gmail.com"
    },
    {
      "name": "pangratz",
      "email": "cmueller.418@gmail.com"
    },
    {
      "name": "rwjblue",
      "email": "me@rwjblue.com"
    },
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    },
    {
      "name": "turbo87",
      "email": "tobias.bieniek@gmx.de"
    }
  ],
  "name": "babel-plugin-htmlbars-inline-precompile",
  "optionalDependencies": {},
  "readme": "# babel-plugin-htmlbars-inline-precompile [![Build Status](https://travis-ci.org/ember-cli/babel-plugin-htmlbars-inline-precompile.svg?branch=master)](https://travis-ci.org/ember-cli/babel-plugin-htmlbars-inline-precompile)\n\nBabel plugin to replace ES6 tagged template strings with the `HTMLBars.precompile`d version of it:\n\n``` js\nimport hbs from 'htmlbars-inline-precompile';\n\nmodule(\"my view\");\n\ntest(\"inline templates ftw\", function(assert) {\n  var view = Ember.View.create({\n    greeting: \"inline template world\",\n    template: hbs`\n      <span>hello {{view.greeting}}</span>\n    `\n  });\n\n  view.appendTo('#testing');\n\n  assert.equal(view.$().html().trim(), \"<span>hello inline template world</span>\");\n});\n```\n\nresults in\n\n``` js\nmodule(\"my view\");\n\ntest(\"inline templates ftw\", function(assert) {\n  var view = Ember.View.create({\n    greeting: \"inline template world\",\n    template: Ember.HTMLBars.template(function() {\n      /* crazy HTMLBars template function stuff */\n    })\n  });\n\n  view.appendTo('#testing');\n\n  assert.equal(view.$().html().trim(), \"<span>hello inline template world</span>\");\n});\n```\n\nIf the template is compact, a normal string can be passed as argument as well:\n\n``` js\nimport hbs from 'htmlbars-inline-precompile';\n\nmodule(\"my view\");\n\ntest(\"inline templates ftw\", function(assert) {\n  var view = Ember.View.create({\n    greeting: \"inline template world\",\n    template: hbs('<h1>{{view.greeting}}</h1>')\n  });\n\n  view.appendTo('#testing');\n\n  assert.equal(view.$().html().trim(), \"<h1>inline template world</h1>\");\n});\n```\n\n\n## Usage\n\n``` js\nvar HTMLBarsCompiler = require('./bower_components/ember/ember-template-compiler');\nvar HTMLBarsInlinePrecompile = require('babel-plugin-htmlbars-inline-precompile');\n\nrequire('babel').transform(\"code\", {\n  plugins: [\n    [HTMLBarsInlinePrecompile, {precompile: HTMLBarsCompiler.precompile}],\n  ],\n});\n```\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile.git"
  },
  "scripts": {
    "test": "mocha tests"
  },
  "version": "0.2.3"
}
