Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 688 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 688 Bytes

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