pascallaliberte / stimulus-turbolinks-demo

A Stimulus + Turbolinks Demo of an app called Proposahoy!

Home Page:https://pascallaliberte.github.io/stimulus-turbolinks-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stimulus + Turbolinks Demo

  • Stimulus (by Basecamp) adds listeners on elements as they appear on the page.
  • Turbolinks (also by Basecamp) loads the next page via pjax.

Both of these together make for a sweet combination to add touches of interaction to otherwise server-side rolled HTML. If you want to add more complex client-side interactions (if you must), then hook something up with Vue or something fancy (I've got another demo for that here if interested).

This demo app was made to show off the Stimulus-based controllers that get connected to and disconnected from elements as they're added or removed from the DOM, and to show off the snappiness you get between pages with Turbolinks.

Hope it's useful!

-- Pascal Laliberté

About

A Stimulus + Turbolinks Demo of an app called Proposahoy!

https://pascallaliberte.github.io/stimulus-turbolinks-demo/


Languages

Language:HTML 37.2%Language:Ruby 25.0%Language:CSS 24.9%Language:JavaScript 12.9%