duck.backend.django.templatetags.ducktags

Module for registering tags or filters that were initially registered by Duck, making them readily available in Django as well.

Warning

Do not delete or edit this file unless you understand its purpose and functionality.

Notes:

  • By default, in all TemplateResponses, The tags registered here will be available for use as builtins.

  • In Django Sided Templates (Templates rendered by using django.shortcuts.render), for you to use the template filters and tags defined within Duck,

You need to load the duck tags by using this line:

{% load ducktags %}

Module Contents

Functions

register_duck_templatetags

Registers all template tags and filters created within Duck.

Data

register

API

duck.backend.django.templatetags.ducktags.register

‘Library(…)’

duck.backend.django.templatetags.ducktags.register_duck_templatetags(library)

Registers all template tags and filters created within Duck.