Basic Counter
Gotta start somewhere, right? This example shows how to send click events to the backend to update state. We also snuck in handling URL params.
View Demo →
Source
Basic Counter with PubSub
The counter example, but with PubSub. Open this example in multiple windows to see the state update in real time across all windows.
View Demo →
Source
JS Commands
JS Commands let you update the DOM without making a trip to the server.
View Demo →
Source
Presence
A simple example of presence tracking. Open this example in multiple windows.
View Demo →
Source
Maps
A simple example of using Leaflet.js with PyView, and sending information back and forth between the liveview and the JS library.
View Demo →
Source
Kanban Board
A simple Kanban board example with drag and drop (another hooks example showing integration w/ SortableJS).
View Demo →
Source
Template Includes
This example shows how to include templates in other templates.
View Demo →
Source