renderer

Returns a promise with a rendered handlebars file or renders template to a file

renderer

Returns a promise with a rendered handlebars file or renders template to a file

  renderer 'templates/foo.hbs''public/foo.html',
    title: 'Foobar'
    name: 'Sublime'
  .then ->
    console.log 'all done!'
  renderer 'templates/foo.hbs',
    title: 'Foobar'
    name: 'Sublime'
  .then (rendered) ->
    console.log rendered

Read file contents into the template

  {{readFile '/path/relative/to/hbs/file.txt'}}

JSON.stringify an object into the template

  {{{stringify someobj}}}

MIT