https://github.com/a/mnml-tpl
Hello :username, :repository is tiny string template engine
https://github.com/a/mnml-tpl
javascript template-engine tiny
Last synced: about 1 year ago
JSON representation
Hello :username, :repository is tiny string template engine
- Host: GitHub
- URL: https://github.com/a/mnml-tpl
- Owner: A
- Created: 2015-02-04T14:09:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T21:17:22.000Z (over 11 years ago)
- Last Synced: 2025-04-24T14:23:41.757Z (about 1 year ago)
- Topics: javascript, template-engine, tiny
- Language: JavaScript
- Homepage:
- Size: 320 KB
- Stars: 3
- Watchers: 46
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal Templates
[](https://travis-ci.org/rambler-digital-solutions/mnml-tpl)
Replace all `:keys` in string with given object.
## Install
```
npm i -S mnml-tpl
```
## Examples
```js
var tpl = require('mnml-tpl');
var locals = { host: 'world', user: 'hello' };
var template = 'ssh :user@:host';
tpl(template)(locals); // ssh hello@world
```
## License
MIT