Templatetags

Core templatetags

Core templatetags are automatically loaded for your disposal.

Custom URLs templatetags

Lot of what you see here has been stolen from Django’s {% url %} tag.

ella.core.templatetags.custom_urls_tags.custom_url(parser, token)

Get URL using Ella custom URL resolver and return it or save it in context variable.

Syntax:

{% custom_url <FOR_VARIABLE> <VIEWNAME>[[[ <ARGS>] <KWARGS>] as <VAR>] %}

Examples:

{% custom_url object send_by_email %}
{% custom_url object send_by_email 1 %}
{% custom_url object send_by_email pk=1 %}
{% custom_url object send_by_email pk=1 as saved_url %}

Photos

Positions