• v0.4.0 5d824a0b6f

    v0.4.0 Stable

    rosa released this 2026-06-03 18:11:55 +00:00 | 3 commits to main since this release

    Added

    • New module: Hypa.Phoenix, which has a new function useful for rendering
      multiple Phoenix templates at once: Hypa.Phoenix.render_many/2. This
      function accepts the conn and a list of templates and assigns, like this:

      conn
      |> Hypa.Phoenix.render_many([
        :foo,
        {:bar, [a: 1]},
        {"baz", [b: 2, c: 3]}
      ])
      

      This will render foo.html.heex, bar.html.heex, and bax.html.heex with
      the given assigns, using the Phoenix.View used by the current controller.

      This should be useful for rendering out-of-band swaps.

    Downloads
  • v0.3.0 1b49ce9970

    v0.3.0 Stable

    rosa released this 2025-09-22 19:05:07 +00:00 | 84 commits to main since this release

    Added

    Downloads
  • v0.2.0 f242749ae8

    v0.2.0 Stable

    rosa released this 2024-07-21 16:14:54 +00:00 | 131 commits to main since this release

    Added

    • Two new operations to Hypa.Plug:
      • add_htmx_cache_control/2 - adds hx-request to the vary header for better cache control
      • put_htmx_layout/2 - removes the Phoenix layouts from responses to htmx requests.
        This is only enabled if Phoenix.Controller is defined.
        Phoenix is now an optional dependency.
    Downloads
  • v0.1.0 0d2f954ecf

    v0.1.0 Stable

    rosa released this 2024-07-18 17:22:20 +00:00 | 135 commits to main since this release

    Added

    • Hypa.Plug - parses htmx request headers and puts them in conn.assigns
    Downloads