tiny-templater

super-minimal templating

npm install tiny-templater
30 downloads in the last month

tiny-templater

Build Status

simple templating for simple needs

usage

var templater = require('tiny-templater'),
    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 ''.

license

MIT

npm loves you