Reputation: 5483
I'm working with Django and in the base template I see this: {% get_cms_html_fragment "html/footer" %}
From the surrounding syntax I can easily conclude that this is a footer include of some sort. But, it doesn't follow the traditional syntax of {% block headerexample %}{% endblock %}
that is normally used in Django templates. Does anyone recognize this?
Upvotes: 2
Views: 131
Reputation: 474003
This is a syntax for a template tag. FYI, block
is one of the built-in template tags, get_cms_html_fragment
is a custom one.
Custom template tags and filters are loaded via load
built-in template tag.
See also:
Upvotes: 1
Reputation: 6627
In Django you can easily create custom tags. So it can be this very project specific tag. https://docs.djangoproject.com/en/dev/howto/custom-template-tags/
Upvotes: 1