# How to Use Template Tags and Filters django-stratagem ships template tags and filters for rendering registry data. ## Loading Template Tags ```html {% load stratagem %} ``` ## Tags ### get_implementations Get all implementations for a registry, optionally filtered by context. ```html {% get_implementations my_registry as implementations %} {% get_implementations my_registry context as implementations %} {% for slug, impl in implementations.items %}
{{ slug }}: {{ impl }}
{% endfor %} ``` ### get_choices Get a choices list for a registry. ```html {% get_choices my_registry as choices %} {% get_choices my_registry context as choices %} {% for slug, label in choices %} {% endfor %} ``` ### get_registries Get all registered registries. ```html {% get_registries as registries %} {% for registry in registries %}{{ impl|registry_description }}
{% if impl|is_available:request_context %} Available {% else %} Unavailable {% endif %}