Wednesday, April 24, 2024
HomeJavaScriptIncrementally Making use of Hotwire To An Present ColdFusion Software

Incrementally Making use of Hotwire To An Present ColdFusion Software


Over the previous few months, I have been exploring the Hotwire framework from Basecamp. Hotwire consists of the usage of Turbo for enhanced efficiency and Stimulus for dynamic interactions. There’s something very engaging concerning the Hotwire philosophy and the way in which it drives progressive enhancement. However, dropping Hotwire right into a ColdFusion software is not seamless. File extension limitations and kind processing redirects, for instance, mandate a minimum of some modifications to the way in which you architect your Controller layer. I might like to start out utilizing Hotwire on my ColdFusion weblog; however, I do know my code is not “Hotwire prepared”. As such, I needed to take a look at how I can incrementally apply Hotwire to my present ColdFusion software.

View this code in my ColdFusion + Hotwire Demos undertaking on GitHub.

As I discussed above, Hotwire is not “one factor”, it is an umbrella of applied sciences that work collectively to strive and create SPA (Single-Web page Software)-like experiences on high of MPAs (Multi-Web page Software). Turbo consists of “Turbo Drive”, “Turbo Frames”, and “Turbo Streams”; and, works to reinforce web page navigation, partial web page updates, and lazy-loaded content material. Stimulus is the express JavaScript layer that provides dynamic interactivity to a given a part of the DOM (Doc Object Mannequin).

Try the license.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments