npm

Need private packages and team management tools?Check out npm Orgs. »

@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"]
});

Keywords

install

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

Downloadsweekly downloads

7

version

3.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability