Use json for htmx posts
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
With this extension we can make HTMX post in JSON instead of form-urlencoded: https://github.com/bigskysoftware/htmx-extensions/blob/main/src/json-enc/README.md
And we can send the anti-forgery token as a header with HTMX hx-headers.
Advantages:
- handles lists better
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked htmx json-enc README to understand the requested request format and header behavior. Find the application entry point that handles HTMX posts, then update the request flow so posts use JSON and the anti-forgery token is sent through hx-headers; done means lists are handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100