{# Signature (copy-paste ready) #}
{% if m.signature %}
{{ m.signature }}
{% end %}
{# Full description - only show if truncated in header #}
{% let desc_stripped = (m.description | striptags | trim) if m.description else '' %}
{% if m.description and desc_stripped | length > 77 %}
{{ m.description | markdownify | safe }}
{% end %}
{# Member parameters - using ParamView from MemberView.params #}
{% if m.params | length > 0 %}
Parameters
| Name |
Type |
Description |
{% for p in m.params %}
{{ p.name }} |
{{ p.type if p.type else '—' }} |
{{ (p.description | markdownify | safe) if p.description else '' }}
{% if p.default is not none and p.default != '' %}
Default: {{ p.default }}
{% end %}
|
{% end %}
{% end %}
{# Member return type (detailed) - only show if has description OR non-trivial type #}
{% let is_nontrivial_return = m.return_type and m.return_type not in ('None', 'none', 'void', '') %}
{% if m.return_description or is_nontrivial_return %}
Returns
{{ m.return_type }}
{% if m.return_description %}
{{ m.return_description }}
{% end %}
{% end %}