ansible-doctor/ansibledoctor/templates/readme/_tag.j2

13 lines
365 B
Django/Jinja

{% set tag = role.tag | default({}) %}
{% if tag %}
## Discovered Tags
{% for key, item in tag | dictsort %}
{% set is_desc = item.description is defined and item.description | save_join(" ") | striptags %}
**_{{ key }}_**{{ "\\" if is_desc else "" }}
{% if is_desc %}
 {{ item.description | save_join(" ") | striptags }}
{% endif %}
{% endfor %}
{% endif %}