{# Bengal OpenAPI Explorer Layout (Three Column - Stripe Style) ============================================================ A three-column layout inspired by Stripe/Mintlify API documentation. - Left: Navigation sidebar - Center: Endpoint documentation - Right: Code examples (sticky) 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 (sidebar, content, examples) - {% embed %} compatible via slot system - {% 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: API Navigation #} {# Center: Main Documentation #}
{# Breadcrumbs #} {{ breadcrumbs(page) }}
{# Header Block #}
{% block header %} {# Override in child templates #} {% end %}
{# Main Content Block #}
{% block content_main %} {# Override in child templates #} {% end %}
{# Footer with Tags #} {% with page?.tags as tags %} {% if tags | length > 0 %}
Tagged {% from 'partials/components/tags.html' import tag_list %} {{ tag_list(tags) }}
{% end %} {% end %}
{# Page Navigation (prev/next) #} {{ page_navigation(page) }}
{# Right Panel: Code Examples (Sticky) #}
{# Mobile Controls #} {% end %}