Nibbling Perfect Macaroni
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

backtick

0.3.2 • Public • Published

Build Status codecov

backtick

template literal based template engine.

Install

$ npm install backtick

Usage

// template.txt
Fifteen is ${a + b} and
not ${2 * a + b}.

or

`Fifteen is ${a + b} and
not ${2 * a + b}.`
// example
const backtick = require('backtick');
 
backtick(`template.txt`, 'dist', {
  a: 5,
  b: 10
});
// dist/template.txt
Fifteen is 15 and
not 20.

License

MIT © mkwtys

install

npm i backtick

Downloadsweekly downloads

20

version

0.3.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability