Move html to separete files

This commit is contained in:
Pavel Mineev
2020-05-10 23:51:13 -05:00
committed by Umputun
parent f5fcd5b254
commit b90d076fdf
23 changed files with 479 additions and 290 deletions
+13
View File
@@ -0,0 +1,13 @@
### Email templating
We use golang templates for email templating.
templates located in `backend/templates` and embeded into binary by statik
For getting access to files you can use package `templates` from `backend/app/templates`
Now we have following templates:
- `email_confirmation_login.html.tmpl` used for confirmation of login
- `email_confirmation_subscription.html.tmpl` used for confirmation of subscription
`email_reply.html.tmpl` used for sending replies to user comments (when user subscribed to it) and for noticing admins about new comments on a site
`email_unsubscribe.html.tmpl` used for notification about successful unsubscribe from replies
`error_response.html.tmpl` used for ...