|
27 | 27 | {% with heading_level = heading_level + extra_level %}
|
28 | 28 | {% for attribute in attributes|order_members(config.members_order, members_list) %}
|
29 | 29 | {% if not attribute.is_alias or attribute.is_explicitely_exported %}
|
30 |
| - {% include "attribute.html" with context %} |
| 30 | + {% include attribute|get_template with context %} |
31 | 31 | {% endif %}
|
32 | 32 | {% endfor %}
|
33 | 33 | {% endwith %}
|
|
42 | 42 | {% with heading_level = heading_level + extra_level %}
|
43 | 43 | {% for class in classes|order_members(config.members_order, members_list) %}
|
44 | 44 | {% if not class.is_alias or class.is_explicitely_exported %}
|
45 |
| - {% include "class.html" with context %} |
| 45 | + {% include class|get_template with context %} |
46 | 46 | {% endif %}
|
47 | 47 | {% endfor %}
|
48 | 48 | {% endwith %}
|
|
58 | 58 | {% for function in functions|order_members(config.members_order, members_list) %}
|
59 | 59 | {% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %}
|
60 | 60 | {% if not function.is_alias or function.is_explicitely_exported %}
|
61 |
| - {% include "function.html" with context %} |
| 61 | + {% include function|get_template with context %} |
62 | 62 | {% endif %}
|
63 | 63 | {% endif %}
|
64 | 64 | {% endfor %}
|
|
75 | 75 | {% with heading_level = heading_level + extra_level %}
|
76 | 76 | {% for module in modules|order_members(config.members_order, members_list) %}
|
77 | 77 | {% if not module.is_alias or module.is_explicitely_exported %}
|
78 |
| - {% include "module.html" with context %} |
| 78 | + {% include module|get_template with context %} |
79 | 79 | {% endif %}
|
80 | 80 | {% endfor %}
|
81 | 81 | {% endwith %}
|
|
91 | 91 | filter_objects(filters=config.filters, members_list=members_list, keep_no_docstrings=config.show_if_no_docstring)|
|
92 | 92 | order_members(config.members_order, members_list) %}
|
93 | 93 |
|
94 |
| - {% if not (obj.kind.value == "class" and child.name == "__init__" and config.merge_init_into_class) %} |
| 94 | + {% if not (obj.is_class and child.name == "__init__" and config.merge_init_into_class) %} |
95 | 95 |
|
96 |
| - {% if child.kind.value == "attribute" %} |
| 96 | + {% if child.is_attribute %} |
97 | 97 | {% with attribute = child %}
|
98 |
| - {% include "attribute.html" with context %} |
| 98 | + {% include attribute|get_template with context %} |
99 | 99 | {% endwith %}
|
100 | 100 |
|
101 |
| - {% elif child.kind.value == "class" %} |
| 101 | + {% elif child.is_class %} |
102 | 102 | {% with class = child %}
|
103 |
| - {% include "class.html" with context %} |
| 103 | + {% include class|get_template with context %} |
104 | 104 | {% endwith %}
|
105 | 105 |
|
106 |
| - {% elif child.kind.value == "function" %} |
| 106 | + {% elif child.is_function %} |
107 | 107 | {% with function = child %}
|
108 |
| - {% include "function.html" with context %} |
| 108 | + {% include function|get_template with context %} |
109 | 109 | {% endwith %}
|
110 | 110 |
|
111 |
| - {% elif child.kind.value == "module" and config.show_submodules %} |
| 111 | + {% elif child.is_module and config.show_submodules %} |
112 | 112 | {% with module = child %}
|
113 |
| - {% include "module.html" with context %} |
| 113 | + {% include module|get_template with context %} |
114 | 114 | {% endwith %}
|
115 | 115 |
|
116 | 116 | {% endif %}
|
|
0 commit comments