bigskysoftware / bigskysoftware/htmx
Suggestion: Shortcut for `hx-post` using a configurable parameter
Open
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
Hi!
I frequently use the `hx-post=` attribute in my projects and was wondering if it would be possible to introduce a shortcut for this parameter, such as `hx=`, which could be configured through JavaScript settings.
For example:
```js
hxMainParam = "post"; // or "get", "put", ...
```
This would allow us to define the main method (e.g., POST or GET) globally, simplifying the use of HTMX in different contexts.
Thanks in advance!
Contributor guide
Assessment
This issue has not been assessed yet.