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.