1.0.2 • Published 9 years ago

tiny-templater v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

tiny-templater

Build Status npm install

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

1.0.2

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago