smpltmpl
Simple templates for Node.js based on ECMAScript template literals syntax
Last updated 9 years ago by sapegin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install smpltmpl 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.2                                ...           latest (9 years ago)

3 Versions

  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 3
Last Month 0
Dependencies (1)
Dev Dependencies (7)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE