Proca.Service.EmailTemplate (proca v3.4.1)
Models an email tempalate to be rendered into a thank you email, etc.
Link to this section Summary
Functions
Changeset, only used for local templates stored in DB
Validate the template set in changeset is valid for owning Org. (both action pages and orgs have template attributes)
Link to this section Functions
Link to this function
all(kw)
Link to this function
all(query, list)
Link to this function
changeset(attrs)
Link to this function
changeset(service, attrs)
Changeset, only used for local templates stored in DB
Link to this function
compile(t)
Link to this function
compile_string(m)
Link to this function
defaults(arg1)
Link to this function
html_from_text(text)
Link to this function
one(kw)
Link to this function
one!(kw)
Link to this function
render(email, tmpl)
Specs
render(Swoosh.Email, Proca.Service.EmailTemplate) :: Swoosh.Email
Link to this function
render_string(m, vars)
Link to this function
validate_exists(changeset, field)
Validate the template set in changeset is valid for owning Org. (both action pages and orgs have template attributes)
If no template backend is configured, return success - we assume that user might use an external template.
Link to this function