Menu icon Foundation
Foundation Email with mandrill

I'm using Foundation Email to create email templates. I want to use these templates with mandrill with custom data as it supports handlebars. Is there a way to generate a template which could be used with mandrill?

madrillFoundationemailtemplateHandlebars

I'm using Foundation Email to create email templates. I want to use these templates with mandrill with custom data as it supports handlebars. Is there a way to generate a template which could be used with mandrill?

logomines over 1 year ago

Such a great post to know different useful information.

Logomines

Arsalan over 1 year ago

I have solved this problem with a little trick.

default.html in layout dir

<html>
<
head>
  <
title>Definitely STILL an Email!</title>
</
head>
<
body>
  {{> body}}
</
body>
</
html>

 

Customfile.html in pages dir

\{{newLink}}
\{{#each comments}}
<
h2><a href="\{{id}}">\{{title}}</a></h2>
<
div>\{{date}}</div>
\{{/each}}

\{{#if title}}
  <
h2>Print me </h2>>
\{{/if}}

 

It will produce

<html>
<
head>
  <
title>Definitely STILL an Email!</title>
</
head>
<
body>
  {{newLink}}
  {{#each comments}}
  <
h2><a href="{{id}}">{{title}}</a></h2>
  <
div>{{date}}</div>
  {{/each}}

  {{#if title}}
  <
h2>Print me </h2>>
  {{/if}}
</
body>
</
html>

 

 

Arsalan over 1 year ago

I added my work in Github repo for easy understanding.

https://github.com/mabc224/foundation-for-emails-mandrill-example

FlavioBashirian over 1 year ago

It is hard to create templates for emails. I have taken the best essay help to know how to create them. I really like the idea of creating mandrill templates.

xaydungtientrieu over 1 year ago

 This is a great article. It gave me a lot of useful informationb Website: https://xaydungtientrieu.com/

Gonzalo Huiragin over 1 year ago

oh great, I try using the code of the doctor try, thank you for sharing, see more

phongkham about 1 year ago

This is a great article. It gave me a lot of useful information. thank you very much. Link profile : https://pasteur.com.vn/bai-viet/dieu-tri-buou-co

Tran Thu about 1 year ago

thanks

Tran Thu about 1 year ago

thanks