{# Log entry macro. Callers use it via `{% call log_entry(...) %}body{% endcall %}`. Renders a folded
with a summary line: timestamp, kind, and a short status string. `open=True` starts expanded (rare — normally we want the summary counts visible without clutter). #} {% macro log_entry(kind, timestamp, summary, open=False) -%}
{{ kind }} {{ summary|safe }}
{{ caller() }}
{%- endmacro %}