tiny-templater
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/tiny-templater package

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    20
    • latest

Version History

Package Sidebar

Install

npm i tiny-templater

Weekly Downloads

18

Version

1.0.2

License

MIT

Last publish

Collaborators

  • jarofghosts