File: examples.html.jinja

package info (click to toggle)
anta 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,048 kB
  • sloc: python: 48,164; sh: 28; javascript: 9; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ log.debug("Rendering examples section") }}

{% import "language.html.jinja" as lang with context %}

<details class="example" open>
  <summary>{{ "Examples" | convert_markdown(heading_level +1, html_id, strip_paragraph=True) }}</summary>
  {% for section_type, sub_section in section.value %}
    {% if section_type.value == "text" %}
        {{ sub_section|convert_markdown(heading_level, html_id) }}
    {% elif section_type.value == "examples" %}
        {{ sub_section|highlight(language="pycon", linenums=False) }}
    {% endif %}
  {% endfor %}
</details>