File size: 1,058 Bytes
7d0c16f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "base.html.j2" %}
{% import "components.html.j2" as ui %}

{% block content %}
<h1>{{ doc.metadata.script_type or "M贸dulo interno" }}{{ doc.metadata.description or "Documentaci贸n" }}</h1>
<p class="muted">Referencia funcional del m贸dulo compartido.</p>

{{ ui.metadata_block(doc.metadata) }}
{{ ui.summary_block(doc.summary) }}

{% if doc.api %}
  <div class="section">
    <h2>API p煤blica</h2>
    {% for fn in doc.api %}
      <h3>{{ fn.name }}</h3>
      <p>{{ fn.description }}</p>
      {{ ui.table_block("Par谩metros", fn.parameters, [
        {"field": "name", "title": "Nombre"},
        {"field": "description", "title": "Descripci贸n"},
        {"field": "type", "title": "Tipo"}
      ]) }}
      {{ ui.list_block("Efectos colaterales", fn.side_effects) }}
      {{ ui.logic_block("Retorna", fn.returns) }}
    {% endfor %}
  </div>
{% endif %}
{{ ui.list_block("Efectos colaterales", doc.side_effects) }}
{{ ui.list_block("Errores", doc.errors) }}
{{ ui.logic_block("Detalles de implementaci贸n", doc.logic) }}

{% endblock %}