{# Inline-edit title cell. Display mode renders an link to the full edit page (preserves the primary click target); double-click on the cell or focused-Enter swaps to edit mode via hx-get ?mode=edit. Edit mode renders an autofocus input wrapped in a hx-patch form; Enter submits; Esc reverts via a keyup[key=='Escape'] hx-get back to view mode. #} {% if mode == 'edit' %}
{% if error %}
{{ error }}
{% endif %}
⏎ save · esc cancel
{% else %}
{{ post.title }} {% endif %}