Backtick Template Save

ES2015 backticks for ES3+ engines

Project README

Deprecated / Unmaintained

Please use tag-params instead.


ES2015 backticks for ES3+ engines build status Coverage Status

var template = require('backtick-template');

// just string
const info = 'template';
`some ${info}` === template('some ${info}', {info});

// passing through a transformer
transform `some ${info}` ===
    template(transform, 'some ${info}', {info});

// using it as String method
String.prototype.template = template.asMethod;

`some ${info}` === 'some ${info}'.template({info});

transform `some ${info}` ===
    'some ${info}'.template(transform, {info});

MIT Style License

Open Source Agenda is not affiliated with "Backtick Template" Project. README Source: WebReflection/backtick-template
Stars
32
Open Issues
0
Last Commit
6 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating