Foundation for emails: Add code after Inky and Inlining

180 Views Asked by At

I'm using foundation for emails 2.

I'm looking to insert a piece of code into the final rendered email, after all the node tasks have run, specifically after the email has been inlined. As inlining breaks the particular snippet I'm looking to insert.

Can I insert a custom piece of code per email, with the help of panini templating?

How might I achieve this with a node task? Or is there another better method to use here.

1

There are 1 best solutions below

2
AudioBubble On

You can use {{{raw}}} your code {{{/raw}}} or <raw> your code </raw> to output any needed strings which should not be changed by Inky.

And you can add another Gulp task to replace any custom string or add a custom Handlebars helper.