{# Bengal OpenAPI Reference Layout (Single Column) =============================================== A clean, single-column layout for REST API documentation. Use when code examples should appear inline rather than in a separate panel. Context: - element: DocElement (endpoint, schema, or overview) - page: Page object - section: Section (optional) - site: Site instance - config: Config instance Kida Features: - {% block %} for content slots - {% with %} for nil-resilient access - Optional chaining (?.) and null coalescing (??) #} {% extends "base.html" %} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation %} {% block content %} {% let meta = element?.metadata ?? element?.typed_metadata ?? {} %}
{# Left Sidebar: Navigation (Optional via block) #} {% block sidebar %} {% end %}
{# Breadcrumbs #} {{ breadcrumbs(page) }} {# Header Section #}
{% block header %}

{{ element?.name ?? page?.title ?? 'API Reference' }}

{% with element?.description as desc %} {% if desc %}
{{ desc | markdownify | safe }}
{% end %} {% end %} {% end %}
{# Main Content #}
{% block content_main %} {# Override in child templates #} {% end %}
{# Inline Code Examples (for single-column layout) #} {% block code_examples %} {% end %} {# Footer / Navigation #}
{# Mobile sidebar toggle (if sidebar present) #} {% block mobile_controls %} {% end %} {% end %}