Adds a tab to PhoenixKit's email settings page for editing the host app's phoenix_kit_templates email files, per language, with preview, a variables panel and "send to me". Writing is off unless editable: true is configured (meant for dev), and it lists files not yet committed to git. It owns no database tables, only one setting row.
Use it when
- Developers or editors want to edit and preview email templates in the browser before committing them
- You override PhoenixKit's built-in emails with your own files and want to see what is actually sent
What it gives you
- Per-language template editing with preview and layout selection
- Variables panel with samples and checks on save
- Send-to-me test email, rate-limited and logged
- Refuses saves when the file changed on disk; lists uncommitted files
- Permissions templates_editor and templates_editor.write
- Every change written to the activity log
Example
# config/dev.exs — only where templates are edited
config :phoenix_kit_templates_editor, editable: true
Templates Editor news
-
Templates Editor 0.2.1: Passkey notices are protected like other sign-in emails
PhoenixKit Templates editor 0.2.1 treats the passkey added and removed emails of core 3.6 as sign-in emails, so the all-emails setting no longer covers them.
-
Templates Editor 0.2.0: Works with PhoenixKit 3
PhoenixKit Templates editor 0.2.0 accepts PhoenixKit 3.x and reads old database email templates through the Emails module, since core no longer serves them.
-
Templates Editor 0.1.0: Edit email template files from the admin
PhoenixKit Templates editor 0.1.0 for Phoenix edits your email template files in the admin, with layouts, variables, a preview and a test send to yourself.
Install
1
Add to mix.exs
{:phoenix_kit_templates_editor, "~> 0.3"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_templates_editor
- Releases
-
- 0.3.0
- 0.2.1
- 0.2.0
- Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Platform & tools.
Dashboards
Build admin dashboard pages from widgets that any module exposes
No other modules needed
Database Explorer
Browse Postgres tables and watch row changes live from the admin
No other modules needed
Hello World
A demo module to copy when building your own PhoenixKit module
No other modules needed
Legal
Generated legal pages, cookie consent banner and consent logging
Needs Publishing
Stats
Collect and chart time-series metrics from external sources over Graphite
No other modules needed
Sync
Pull data between PhoenixKit sites over token-based connections
No other modules needed