Preview and display your Swoosh mailers to everyone.
If available in Hex, the package can be installed
by adding swoosh_gallery
to your list of dependencies in mix.exs
:
def deps do
[
{:swoosh_gallery, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/swoosh_gallery.
You can see Swoosh.Gallery
in action with the Phoenix app included in ./sample
:
- Run
mix do deps.get, phx.server
- Go to
http://localhost:4000/dev/emails
You can also generate static HTML files for your Gallery
. This is useful when you want to view the gallery without needing to run a server.
mix swoosh.gallery.html --gallery Sample.Gallery --path="./_build/gallery"
open _build/gallery/index.html_
- Download the project.
- Run
mix do deps.get, tailwind.install
- Make some changes.
- If you need to add new tailwind styles, run
mix tailwind.default
.