All notable changes to this project are documented here. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.2.0]
Added
mix igniter.install phtmx— an Igniter installer that wires phtmx into a Phoenix app: addsplug Phtmx.Plugto the:browserpipeline,import Phtmx.Responseto the web module'scontroller/0, the CSRFhx-headersattribute to the root layout's<body>, and vendorshtmx.min.jsintoassets/vendor/with animportinapp.js. Each step is idempotent and degrades to a printed notice if its anchor can't be found. Flags:--pipeline,--htmx-version,--skip-asset-fetch.igniteras anoptionaldependency (install-time only; not pulled into consumers' runtime dependency closure).
[0.1.0]
Initial extraction from the hyper HTMX-first Phoenix scaffold.
Added
Phtmx.Plug— detects HTMX requests via theHX-*request headers, assigns aPhtmx.Requesttoconn.assigns.htmx, and strips the root layout on HTMX requests so responses are bare fragments.Phtmx.Request— parsed HTMX request metadata (request?,boosted?,target,trigger,current_url, …).Phtmx.Response— controller helpers for theHX-*response headers:htmx_redirect/2,htmx_location/2,put_htmx_trigger/2,htmx_retarget/2,htmx_reswap/2.