Merge branch 'docs-template-tags-example' into 'master'

Add example for template tags to docs

See merge request allianceauth/allianceauth!1426
This commit is contained in:
Ariel Rin 2022-06-17 11:58:05 +00:00
commit 24db21463b

View File

@ -1,15 +1,27 @@
=============
Template Tags
=============
=======================
Template tags & filters
=======================
The following template tags are available to be used by all apps. To use them just load the respeetive template tag in your template like so:
The following template tags and filters are available to be used by all apps. To use them just load them into your template like so:
.. code-block:: html
.. code-block:: html+django
{% load evelinks %}
Template Filters
================
evelinks
========
--------
Example for using an evelinks filter to render an alliance logo:
.. code-block:: html+django
<img src="{{ alliance_id|alliance_logo_url }}">
.. automodule:: allianceauth.eveonline.templatetags.evelinks
:members: