simple string interpolation
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

tiny-templater

Build Status npm install npm version js-standard-style License

simple templating for simple needs

usage

var templater = require('tiny-templater')
var tpl = templater('hey, {{ name }}, {{ phrases.question }}?')

console.log(tpl({name: 'buddy', phrases: {question: 'what\'s the word?'}}))
// "hey, buddy, what's the word?"

notes

attempting to reference an undefined variable from within your template will render as an empty string.

license

MIT