tiny-templater

super-minimal templating

tiny-templater

simple templating for simple needs

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?" 

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

MIT