{# Bengal OpenAPI Sidebar Navigation ================================= Smart API navigation grouped by tags. Shows endpoints organized by tag with method badges. Context: - section: Current autodoc section - sections: All autodoc sections (for navigation) - current_page: Current page (for active state) - endpoints: List of endpoint elements (optional, derived from section) - tags: List of tags with their endpoints (optional) - api_title: API title for home link (optional) Kida Features: - {% with %} for nil-safe optional sections - {% spaceless %} for compact badge output - Optional chaining (?.) and null coalescing (??) #} {% let title = api_title ?? section?.title ?? 'API Reference' %} {% let home_href = section?.href ?? '/api/' %}