Skip to content

Instantly share code, notes, and snippets.

@joshatxantie
Last active June 16, 2022 21:12
Show Gist options
  • Save joshatxantie/8a5e3a600392b8c3a9a1a4e5dc488d6e to your computer and use it in GitHub Desktop.
Save joshatxantie/8a5e3a600392b8c3a9a1a4e5dc488d6e to your computer and use it in GitHub Desktop.
Handlebars Email template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample</title>
</head>
<body>
<h1>Sample email with variable injection, utilizing handlebars library</h1>
<p>Hello {{name}}</p>
<p>This is a list of your friends:</p>
{{#each source.logs}}
<p>{{this.name}}</p>
{{/each}}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment