{#
Autodoc Signature Partial

Renders a code signature block for classes, functions, methods.

Required: element (DocElement)
Optional: language (str, default 'python')
#}

{% let sig_language = language ?? 'python' %}
{% let sig_element = element?.metadata?.signature ?? element?.signature %}

{% if sig_element %}
<div class="autodoc-signature">
  <pre><code class="language-{{ sig_language }}">{{ sig_element }}</code></pre>
</div>
{% end %}
