refined-waiter-90422
01/29/2023, 10:53 PMmysterious-toddler-20573
01/29/2023, 11:57 PMadventurous-ocean-93733
01/30/2023, 12:33 PMhemo
git repo?busy-action-85810
01/30/2023, 2:10 PMadventurous-ocean-93733
01/31/2023, 5:12 PMrefined-waiter-90422
01/31/2023, 5:22 PMrefined-waiter-90422
01/31/2023, 5:22 PMadventurous-ocean-93733
01/31/2023, 5:40 PMmysterious-toddler-20573
01/31/2023, 5:48 PMhtmx.process()
to turbolinks to make htmx work for smaller-target updates while keeping turbolinks for normal navigation in rails.busy-action-85810
02/01/2023, 12:29 AMnode_modules
folder is enough to make an engineer go crazy. ๐
...but to answer your question directly, the problem is that by default Rails is wired with Hotwire....and so many people just cargo cult that.
**Gnat**: Yeah, another reason why I don't want to deal with Hotwire/Turbo/Stimulus.
**Carson**: Yeah, I'm trying to make a hard push for Hanami + HTMX and hope to demo this more soon.busy-action-85810
02/01/2023, 12:30 AMgorgeous-activity-10760
03/16/2023, 11:07 AMechoing-dress-67727
03/21/2023, 6:29 PMrender partial: "..."
in my controllersechoing-dress-67727
03/21/2023, 6:29 PMdef htmx_request?
request.headers["HX-Request"]
end
helper_method :htmx_request?
and I sometimes use it in the controller to render a partial instead of the full viewechoing-dress-67727
03/21/2023, 6:33 PMgorgeous-activity-10760
03/25/2023, 2:35 PMorange-nail-40296
04/06/2023, 10:54 PMimportant-machine-88038
05/04/2023, 3:55 PMimportant-machine-88038
05/04/2023, 3:56 PMgreat-cartoon-12331
05/04/2023, 4:03 PMstatic/
directoryimportant-machine-88038
05/04/2023, 9:11 PMimportant-machine-88038
05/04/2023, 9:11 PMgreat-cartoon-12331
05/04/2023, 10:55 PMgreat-cartoon-12331
05/04/2023, 10:56 PM./tailwindcss-linux-x64 -i ./static/input.css -o ./static/output.css --minify && rm static/input.css
busy-action-85810
05/05/2023, 1:57 PMimportant-machine-88038
05/05/2023, 5:12 PMorange-nail-40296
05/09/2023, 7:51 PMimportant-machine-88038
05/12/2023, 1:10 PM// Entry point for the build script in your package.json
import * as bootstrap from "bootstrap"
I added htmx and hyperscript via yarn and then added these lines:
import * as _hyperscript from "hyperscript.org/dist/_hyperscript"
import * as htmx from "htmx.org/dist/htmx"
After I do this, HTMX works, but Hyperscript does not! After a ton of trial and error, I finally got it working by adding this line:
_hyperscript.browserInit();
So, hooray, it works, but also I didn't come across this in any of the docs or anywhere else. And now I'm not sure if I'm setting it up correctly. How come HTMX can initialize itself but Hyperscript cannot? Is this a bug? I don't know enough about JavaScriptWorld to understand what is happening here (but I'd like to!)busy-action-85810
05/20/2023, 9:51 PMorange-nail-40296
05/23/2023, 2:53 AM