@roundingwellos/babel-plugin-handlebars-inline-precompile

3.0.1 • Public • Published

babel-plugin-handlebars-inline-precompile

Precompile inline Handlebars templates.

Example

In

import hbs from 'handlebars-inline-precompile';

hbs`Hello World!`;

Out

import _Handlebars from 'handlebars/runtime';

_Handlebars.template({ /* A bunch of crazy template stuff */ })

Installation

$ npm install babel-plugin-handlebars-inline-precompile

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["handlebars-inline-precompile"]
}

Via CLI

$ babel --plugins handlebars-inline-precompile script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["handlebars-inline-precompile"]
});

Readme

Keywords

Package Sidebar

Install

npm i @roundingwellos/babel-plugin-handlebars-inline-precompile

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

111 kB

Total Files

5

Last publish

Collaborators

  • paulfalgout
  • shadowhand
  • wesmangum