smpltmpl

1.0.2 • Public • Published

smpltmpl

Build Status

Simple templates for Node.js based on ECMAScript template literals syntax.

Installation

npm install --save smpltmpl

Usage

Using a string:

const { template } = require('smpltmpl');
console.log(template('Hello ${who}!', { who: 'templates' }));

Using a template file:

const { templateFromFile } = require('smpltmpl');
console.log(templateFromFile('template.txt', { who: 'templates' }));

Change log

The change log can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    64,450
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    64,450
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i smpltmpl

Weekly Downloads

53,419

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sapegin