2.0.1 • Published 5 months ago

htmx-ext-path-params v2.0.1

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

This extension uses request parameters to populate path variables. Used parameters are removed so they won't be sent in the query string or body anymore.

Install

<script src="https://unpkg.com/htmx-ext-path-params@2.0.0/path-params.js">

Usage

This would invoke URL /items/42?foo=bar

<div hx-ext="path-params">
    <a hx-get="/items/{itemId}" hx-vals='{"itemId": "42", "foo": "bar"}'>test</div>
</div>
2.0.1

5 months ago

2.0.0

1 year ago