bigskysoftware / bigskysoftware/htmx

Suggestion: Shortcut for `hx-post` using a configurable parameter

Open
#2,859 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.