-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemail.html
26 lines (25 loc) · 1.02 KB
/
email.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- [START email_template] -->
<body>
Hello,<br />
<br />
Today, <b><?= content.date ?></b>, is our week <?= content.week ?> of the <?= content.plan ?> training plan. We have <?= content.dte ?> days left.<br />
<br />
Workout: <b><?= content.workout ?></b><br />
<? if (content.link) { ?><a href="<?= content.link ?>">Video</a><br /><? } ?>
<? if (content.exercises) { ?>
Exercise: <? if (typeof content.exercises === "string") { ?><?= content.exercises ?><br /><? } else { ?><br />
<ol>
<? content.exercises.forEach((exercise) => { ?>
<li><?= exercise ?></li>
<? }) ?>
</ol>
<? } ?>
<? } ?>
<br />
<b>Bring it!</b> 💪<br /><br />
Reminder generated by: <a href="<?= content.sheetURL ?>">Training Plan<br />
</body>
<!-- [END email_template] -->
<!-- Reference Google: https://developers.google.com/apps-script/guides/html/templates#index.html_3
Reference: https://github.com/emilyb7/HTML-templating-with-Google-Apps-Script
Style Guide: https://google.github.io/styleguide/htmlcssguide.html -->