StrawHat.Mailer v2.0.0 StrawHat.Mailer.Partials View Source
Partials management use cases.
A Partial is just a chunk of email content that you could reuse cross multiple emails. This is useful when you want to share sections between email templates.
Link to this section Summary
Link to this section Functions
Link to this function
change_partial(partial)
View Source
change_partial(partial)
View Source
change_partial(StrawHat.Mailer.Partial.t()) :: Ecto.Changeset.t()
change_partial(StrawHat.Mailer.Partial.t()) :: Ecto.Changeset.t()
Link to this function
create_partial(repo, partial_attrs)
View Source
create_partial(repo, partial_attrs)
View Source
create_partial(Ecto.Repo.t(), StrawHat.Mailer.Partial.partial_attrs()) ::
StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
create_partial(Ecto.Repo.t(), StrawHat.Mailer.Partial.partial_attrs()) :: StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
Link to this function
destroy_partial(repo, partial)
View Source
destroy_partial(repo, partial)
View Source
destroy_partial(Ecto.Repo.t(), StrawHat.Mailer.Partial.t()) ::
StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
destroy_partial(Ecto.Repo.t(), StrawHat.Mailer.Partial.t()) :: StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
Link to this function
find_partial(repo, partial_id)
View Source
find_partial(repo, partial_id)
View Source
find_partial(Ecto.Repo.t(), String.t()) ::
StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
find_partial(Ecto.Repo.t(), String.t()) :: StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
Link to this function
get_owner_partials(repo, owner_id, pagination \\ [])
View Source
get_owner_partials(repo, owner_id, pagination \\ [])
View Source
get_owner_partials(Ecto.Repo.t(), String.t(), Scrivener.Config.t()) ::
Scrivener.Page.t()
get_owner_partials(Ecto.Repo.t(), String.t(), Scrivener.Config.t()) :: Scrivener.Page.t()
Link to this function
get_partial(repo, partial_id)
View Source
get_partial(repo, partial_id)
View Source
get_partial(Ecto.Repo.t(), String.t()) ::
StrawHat.Mailer.Partial.t() | nil | no_return()
get_partial(Ecto.Repo.t(), String.t()) :: StrawHat.Mailer.Partial.t() | nil | no_return()
Link to this function
get_partials(repo, pagination \\ [])
View Source
get_partials(repo, pagination \\ [])
View Source
get_partials(Ecto.Repo.t(), Scrivener.Config.t()) :: Scrivener.Page.t()
get_partials(Ecto.Repo.t(), Scrivener.Config.t()) :: Scrivener.Page.t()
Link to this function
update_partial(repo, partial, partial_attrs)
View Source
update_partial(repo, partial, partial_attrs)
View Source
update_partial(
Ecto.Repo.t(),
StrawHat.Mailer.Partial.t(),
StrawHat.Mailer.Partial.partial_attrs()
) :: StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())
update_partial( Ecto.Repo.t(), StrawHat.Mailer.Partial.t(), StrawHat.Mailer.Partial.partial_attrs() ) :: StrawHat.Response.t(StrawHat.Mailer.Partial.t(), Ecto.Changeset.t())