File: attribute.html

package info (click to toggle)
python-markdown 3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,128 kB
  • sloc: python: 11,989; makefile: 66; sh: 7
file content (19 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "_base/attribute.html" %}

{% block heading scoped %}
  <a class="doc-source-link" href="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ attribute.relative_filepath }}#L{{ attribute.lineno }}{% if attribute.endlineno > attribute.lineno %}-L{{ attribute.endlineno }}{% endif %}" title='View source code on GitHub'>&lsaquo;&rsaquo;</a>
  {% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-attribute"></code>{% endif %}
  {%+ filter highlight(language="python", inline=True) %}
    {{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
  {% endfilter %}
{% endblock heading %}

{% block contents scoped %}
  {{ super() }}
  {% if attribute.value %}
  <p>Defined Value:</p>
  {%+ filter highlight(language="python", inline=False) %}
{{ attribute.source }}
  {% endfilter %}
  {% endif %}
{% endblock contents %}