Skip to main content

Email template management for web applications

Project description

About mailtemplates

mailtemplates is a Pluggable application for TurboGears2.

Installing

mailtemplates can be installed both from pypi or from bitbucket:

pip install mailtemplates

should just work for most of the users

Plugging mailtemplates

In your application config/app_cfg.py import plug:

from tgext.pluggable import plug

Then at the end of the file call plug with mailtemplates:

plug(base_config, 'mailtemplates')

For configure your default language for email templates, add the ISO 3166-2 code as parameter of the plug call:

plug(base_config, 'mailtemplates', default_language='IT')

If not specified, ‘EN’ will be the default language for you app.

You will be able to access the plugged application at http://localhost:8080/mailtemplates.

Available Hooks

mailtemplates makes available a some hooks which will be called during some actions to alter the default behavior of the appplications:

Exposed Partials

mailtemplates exposes a bunch of partials which can be used to render pieces of the blogging system anywhere in your application:

Exposed Templates

The templates used by registration and that can be replaced with tgext.pluggable.replace_template are:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgapp-mailtemplates-0.8.0.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file tgapp-mailtemplates-0.8.0.tar.gz.

File metadata

File hashes

Hashes for tgapp-mailtemplates-0.8.0.tar.gz
Algorithm Hash digest
SHA256 9827cb4ac8984aafc614e2308a64e5418050eb7ccc32096e6460ad3bd1a383a8
MD5 e5fc90ee7e71143f31b19af264861b4a
BLAKE2b-256 e548741e992ed546f0e816e0c6c39e396c487a93d397a464f3e92932afc0674c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page