#hotwire

[ follow ]
fromInfoWorld
1 week ago

Intro to Hotwire: HTML over the wire

If you've been watching the JavaScript landscape for a while, you've likely noticed the trend toward simplicity in web application development. An aspect of this trend is leveraging HTML, REST, and HATEOAS (hypermedia as the engine of application state) to do as much work as possible. In this article, we'll look at Hotwire, a collection of tools for building single-page-style applications using HTML over the wire.
Web frameworks
fromRubyflow
3 months ago

How to elegantly update other UI when a Turbo Frame is updated

When a request comes from a Turbo Frame, detect the Turbo-Frame header or the Accept header for 'text/vnd.turbo-stream.html' and return a turbo-stream response that emits one or more <turbo-stream> actions. Emit a replace or update for the frame's id and additional turbo-stream actions targeting menu, counter, or sidebar elements so external UI updates occur alongside the frame update. For full page navigations, render the complete HTML with the same updated fragments so behavior remains consistent.
#ruby-on-rails
fromRubyflow
3 months ago
Ruby on Rails

Rails API Authentication with the auth generator

Use Rails API-only apps with the Rails 8 auth generator for authentication when building mobile, multi-platform, or FE-framework-focused applications instead of SPA/Hotwire.
fromRubyflow
6 months ago
UX design

The Hotwire-Rails summit, or interactive multi-step forms at peak UX

Hotwire combined with Rails can deliver interactive user experiences without needing a complete shift to JavaScript frameworks.
[ Load more ]