grafana/emails
Michael Mandrus 8dab3bf36c
SMTP: Update email templates to include populated <title> tag (#61430)
* add .TemplateData property to data in order to populate template <title> tags with the compiled subject value

* update all templates

* re-enable integration test and update implementation to check changes

* chore: fmt

* add HiddenSubject template func and update text templates

* slight performance improvement, only execute subject template once

* update template I missed

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-01-30 16:56:23 -05:00
..
grunt Email: Use MJML email templates (#57751) 2022-11-17 21:41:46 +01:00
templates SMTP: Update email templates to include populated <title> tag (#61430) 2023-01-30 16:56:23 -05:00
gruntfile.js Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
Makefile Email: Use MJML email templates (#57751) 2022-11-17 21:41:46 +01:00
package.json Email: Use MJML email templates (#57751) 2022-11-17 21:41:46 +01:00
README.md Email: Allow configuration of content types for email notifications (#34530) 2021-07-19 13:31:51 +03:00

Prerequisites

  • npm install
  • gem install premailer

Tasks

  • npm run build (default task will build new inlines email templates)
  • npm start (builds on source HTML, text, or CSS change)

Result

Assembled email templates will be in dist/ and final inlined templates will be in ../public/emails/