Back to Gleam

{{ module_name }}

compiler-core/templates/documentation_module.html

1.16.01.7 KB
Original Source

{% extends "documentation_layout.html" %} {% block sidebar_content %} {% if !types.is_empty() %}

Types

{% for typ in types %} - {{ typ.name }} {% endfor %} {% endif %} {% if !values.is_empty() %}

Values

{% for value in values %} - {{ value.name }} {% endfor %} {% endif %} {% endblock %} {% block content %}

{{ module_name }}

{{ documentation|safe }} {% if !types.is_empty() %}

Types

{% for typ in types %}

{{ typ.name }}

{% if typ.opaque %} opaque {% endif %} {% if !typ.source_url.is_empty() %} </> {% endif %} {% if !typ.deprecation_message.is_empty() %}

Deprecated: {{ typ.deprecation_message }}

{% endif %}

{{ typ.documentation|safe }}

{{ typ.definition|safe }}

{% if !typ.constructors.is_empty() %}

Constructors

{% for constructor in typ.constructors %} -

{{ constructor.definition|safe }}

{{ constructor.documentation|safe }} {% if !constructor.arguments.is_empty() %}

Arguments

{% for argument in constructor.arguments %} {{ argument.name }} {{ argument.doc|safe }} {% endfor %} {% endif %} {% endfor %} {% endif %}

{% endfor %}{% endif %} {% if !values.is_empty() %}

Values

{% for value in values %}

{{ value.name }}

{% if !value.source_url.is_empty() %} </> {% endif %}

{{ value.definition|safe }}

{% if !value.deprecation_message.is_empty() %}

Deprecated: {{ value.deprecation_message }}

{% endif %} {{ value.documentation|safe }}

{% endfor %}{% endif %} {% endblock %}