andrewrk / swig-email-templates

Node.js module for rendering emails with swig templates and email-friendly inline CSS using boost.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom filter using swig email templates

rajbala opened this issue · comments

commented

Hey there,

I'm using swig-email-templates, but find myself needing to create a custom filter after using it for a few months.

The Swig documentation says that I need to specify the filter name in swig.init(), but I'm not quite sure where to do that since I'm not instantiating Swig directly.

Any idea where I would do that?

Thanks!

Check in the README in the "usage" section, there's this comment that says "any other swig options here" - you can use any options to swig.init there.

commented

Ahh! I missed that --- thanks!

no problem. enjoy!