bigskysoftware / bigskysoftware/htmx
Fetch hx-vals programatically
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
I want to make an AJAX request from JS using some data from a server which is already in HTML in the `hx-vals` attribute.
There seems to be an internal API function [getExpressionVars](https://github.com/bigskysoftware/htmx/blob/89b9e2afa5fbc62ab7a22292e84f41d7da25447e/src/htmx.js#L3784) for this purpose. It could be convenient to make it public.
Contributor guide
Assessment
This issue has not been assessed yet.