Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T21:17:22.000Z (over 9 years ago)
- Last Synced: 2024-10-14T12:20:25.496Z (30 days ago)
- Topics: javascript, template-engine, tiny
- Language: JavaScript
- Homepage:
- Size: 320 KB
- Stars: 3
- Watchers: 47
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal Templates
[![Build Status](https://travis-ci.org/rambler-digital-solutions/mnml-tpl.svg?branch=master)](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