Closed RhodesPeter closed 7 years ago
Hi @des-des - I have pushed up a new version. The email is being sent with the right information and it now comes through handlebars rather than in the backend as you requested, however we can't give our email.hbs access to our main.css file. Please could you point me in the right direction? Thank you :)
@RhodesPeter you can inline the css (just as you were doing in your original version), also, your hbs is crying out for a loop
something like
{{#each emailParagraph}}
<h2 style=" margin: 0 0 23px 0">{{ title }}</h2>
<p style="margin: 0;">{{text}}</p>
{{#endeach}}
also you are closing your <h2>
with a </h3>
Thanks @des-des.
Hi @des-des, I have added the css inline.
We spent some time creating the each loop with Handlebars but in the end is was creating much more code in our app elsewhere. The main reason this was happening is because sessionStorage orders things alphabetically and using the each loop meant we lost control of which order the values were being displayed in the email.
This is what the completed email looks like this: