are turbo hotwire and stimulus available with hanami? If not are there plans to add them
Well Hotwire is a set of tools, consisting of Turbo, Stimulus and Strada. They are made by basecamp and easily integrated in Rails, but they are not rails dependent. It’s just that Rails has their own integrations with it, Turbo in Rails has its own gem, that provides a DSL and many helpers integrating with Rails models, controllers etc.
But they are also separate from the framework and if you want, you can use them in Hanami. They even have official instructions on how to install those tools outside of Rails
Stimulus Handbook try following this section for example (for stimulus)
For turbo, it is simply available as npm package, so you get it that way and just import * as Turbo from "@hotwired/turbo"
Adding them by default to hanami, seems rather counterproductive IMO, even conflicting with Hanami principles.
Thank you for the advice. I am mainly interested in using stimulus controllers and thus far have had no success in using them with hanami. I’ll keep struggling though.
By the way I found your articles about using warden and shrine very helpful in learning how to use these methods with hanami. I probably couldn’t have done it without them.
Thanks, that is nice to hear.
If you provide some specific problems you had with stimulus integration I might be able to help, I have used it from its first release.
Thank you I’ll keep that in mind.
I like to try to solve things myself first as I learn more that way and I am making progress. Hanami is challenging but I’m enjoying the challenge.
I hope you continue to write good articles like the two I mentioned as they have helped me a lot. I don’t just copy them but use them for learning.