Skip to content

Allow mail to be embedded into a Jinja2 template#2

Open
nottwo wants to merge 1 commit into
Roguelazer:masterfrom
nottwo:template
Open

Allow mail to be embedded into a Jinja2 template#2
nottwo wants to merge 1 commit into
Roguelazer:masterfrom
nottwo:template

Conversation

@nottwo
Copy link
Copy Markdown
Contributor

@nottwo nottwo commented Jun 3, 2015

If template_dir is specified in the config file, muttdown will use
the Jinja2 file named by config.template (default: muttdown.tmpl) in
template_dir to render processed parts.

There are two content variables supplied to the template:

  • body
  • signature

This can be used to provide a body/table container for the generated
email.

The .md source can remain clean and the HTML email can have styles
attached to the container.

If template_dir is specified in the config file, muttdown will use
the Jinja2 file named by config.template (default: muttdown.tmpl) in
template_dir to render processed parts.

There are two content variables supplied to the template:

- body
- signature

This can be used to provide a body/table container for the generated
email.

The .md source can remain clean and the HTML email can have styles
attached to the container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant