StrawHat.Mailer v2.0.0 StrawHat.Mailer.Template View Source
A Template entity.
Link to this section Summary
Types
name
: unique identifier (per owner_id) of the template.title
: Human readable title.privacy
: CheckStrawHat.Mailer.Privacy.t/0
for more information.owner_id
: CheckStrawHat.Mailer.owner_id/0
for more information.subject
: The subject of the email. You can use Mustache template inside for render dynamic content from the data pass to the template.pre_header
: Thepre_header
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.html
: Thehtml
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.text
: Thetext
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.partials
: List ofStrawHat.Mailer.Partial.t/0
associated with the template
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %StrawHat.Mailer.Template{
__meta__: term(),
html: String.t(),
id: term(),
inserted_at: term(),
name: String.t(),
owner_id: StrawHat.Mailer.owner_id(),
partials: [StrawHat.Mailer.Partial.t()] | Ecto.Association.NotLoaded.t(),
pre_header: String.t(),
privacy: StrawHat.Mailer.Privacy.t(),
subject: String.t(),
text: String.t(),
title: String.t(),
updated_at: term()
}
t() :: %StrawHat.Mailer.Template{ __meta__: term(), html: String.t(), id: term(), inserted_at: term(), name: String.t(), owner_id: StrawHat.Mailer.owner_id(), partials: [StrawHat.Mailer.Partial.t()] | Ecto.Association.NotLoaded.t(), pre_header: String.t(), privacy: StrawHat.Mailer.Privacy.t(), subject: String.t(), text: String.t(), title: String.t(), updated_at: term() }
name
: unique identifier (per owner_id) of the template.title
: Human readable title.privacy
: CheckStrawHat.Mailer.Privacy.t/0
for more information.owner_id
: CheckStrawHat.Mailer.owner_id/0
for more information.subject
: The subject of the email. You can use Mustache template inside for render dynamic content from the data pass to the template.pre_header
: Thepre_header
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.html
: Thehtml
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.text
: Thetext
of the email. You can use Mustache template inside for render dynamic html content from the data pass to the template.partials
: List ofStrawHat.Mailer.Partial.t/0
associated with the template.
Link to this type
template_attrs()
View Source
template_attrs()
View Source
template_attrs() :: %{
name: String.t(),
title: String.t(),
subject: String.t(),
owner_id: StrawHat.Mailer.owner_id(),
privacy: StrawHat.Mailer.Privacy.t(),
pre_body: String.t(),
html: String.t(),
text: String.t()
}
template_attrs() :: %{ name: String.t(), title: String.t(), subject: String.t(), owner_id: StrawHat.Mailer.owner_id(), privacy: StrawHat.Mailer.Privacy.t(), pre_body: String.t(), html: String.t(), text: String.t() }
Link to this section Functions
Link to this function
changeset(template, template_attrs)
View Source
changeset(template, template_attrs)
View Source
changeset(t(), template_attrs()) :: Ecto.Changeset.t()
changeset(t(), template_attrs()) :: Ecto.Changeset.t()