Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.


E-mail formatting template tags.

quoted_email(context, template_name)[source]

Renders a specified template as a quoted reply, using the current context.

condense(context, nodelist, max_newlines=3)[source]

Condenses a block of text.

This will ensure that there are never more than the given number of consecutive newlines. It’s particularly useful when formatting plain text output, to avoid issues with template tags adding unwanted newlines.

quote_text(text, level=1)[source]

Quotes a block of text the specified number of times.