mix ash_dispatch.setup (AshDispatch v0.5.0)

View Source

Sets up the initial AshDispatch directory structure and generates default layouts.

Usage

mix ash_dispatch.setup

What It Creates

priv/ash_dispatch/
 layouts/
    email.html.heex    # HTML email layout
    email.text.eex     # Plain text email layout
 templates/             # Your event templates go here

Customization

After running setup, edit the layouts in priv/ash_dispatch/layouts/ to match your brand (logo, colors, footer contact info, etc.).

Event templates only need to provide content - they'll be wrapped in these layouts.