These are chat archives for niftylettuce/node-email-templates

20th
Feb 2015
geoguide
@geoguide
Feb 20 2015 22:49
Sweet a room! This is better than asking in issues, sorry.
Does anyone do hbs partials with this tool?
Jeduan Cornejo
@jeduan
Feb 20 2015 22:50
It has worked for me, yes
geoguide
@geoguide
Feb 20 2015 22:53
can you explain how it works? how would i do like header, content and footer partials in the partials: { //something }
Jeduan Cornejo
@jeduan
Feb 20 2015 22:59
I'm afk right now but I think there's already something about this on teadme and previous issues
geoguide
@geoguide
Feb 20 2015 23:00
the readme just says:
Want to add a helper or partial to Handlebars?

// ...
emailTemplates(templatesDir, {
  helpers: {
    uppercase: function(context) {
      return context.toUpperCase()
    }
  }, partials: {
    // ...
  }
})
// ...
if you happen to think of it later and can help I’d really appreciate it. and i’ll update the readme.
thanks