mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
| .. | ||
| lib | ||
| .bower.json | ||
| bower.json | ||
| ChangeLog | ||
| gulpfile.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
Rendy

Simple template engine compatible with handlebars and mustache.
Install
npm i rendy --save
How to use?
Rendy could be used in browser or node.
Browser version:
<script src="rendy.js"></script>
<script>
var Tmpl = 'hello {{ where }}';
result = rendy(Tmpl, {
where: 'in browser'
});
// returns
'hello in browser'
</script>
Node version:
var rendy = require('rendy'),
Tmpl = 'hello {{ who }}';
result = rendy(Tmpl, {
who: 'world'
});
// returns
'hello world'
License
MIT
