| {% 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 %} | |