htmx
htmx copied to clipboard
status of the response-targets extension
I'm trying to use the response targets extension but I see that its not in the distribution. When I've tested it there are api methods that aren't named in the htmx.js file. Is this extension meant to be in use or does it require a little work to get up and running?
Thanks
Can you include a link to the extension you are using?
https://htmx.org/extensions/response-targets/
~I've taken the version of both the extension and htmx from the master branch and I can't seem to get them working together nicely.~
Scratch that, I'm an idiot who doesn't know how to use extensions properly. It's all working fine for me!
@anthonygoslar - I'd recommend doing as I've done and use (copy) the htmx.js
file directly from src
here as well as the response-targets
extension file, and then consume them directly. I'm assuming that this extension is waiting on a new release?
Oh I see. It appears that the response-targets extension hasn't been 'released' yet. It is present in the src/ext
directory, but not in the dist
directory.
@anthonygoslar Here is a copy you could download and host in your project: https://github.com/bigskysoftware/htmx/blob/master/src/ext/response-targets.js
Actually downloading response-targets.js doesn't work unless you also download the latest copy of htmx.js (I think it uses some API that are not exported in the released version). Any plan to release a new version ?
Hasn't been released yet... I totally understand that, but the docs literally say something else.
This page says <script src="https://unpkg.com/htmx.org/dist/ext/response-targets.js"></script>
:
- https://htmx.org/extensions/response-targets/
I had some build issues. When I get a chance I’ll try pull and see if I can fix it. I’m unfortunately chasing deadlines right now.
On Tue, 04 Jul 2023 at 07:39, atljoseph @.***> wrote:
Hasn't been released yet... I totally understand that, but the docs literally say something else. This page says :
- https://htmx.org/extensions/response-targets/
— Reply to this email directly, view it on GitHub https://github.com/bigskysoftware/htmx/issues/1497#issuecomment-1619526256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKSDLQ3UBVHEV643LJGXVDXOOT7JANCNFSM6AAAAAAZHYM3AU . You are receiving this because you were mentioned.Message ID: @.***>
I get it. Thank you. Hope you have a relaxing holiday!
Hi @anthonygoslar are you still having difficulty with this?