little-arhat / liveview-clj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

liveview-clj

Server-side HTML rendering with reactive updates. Massively inspired by Elixir's LiveView

  • WARNING: work in progress

Description

liveview-clj renders HTML page, inject tiny runtime into it, correlate WebSocket connection with the rendered page, rerender page for each state's update and push updated HTML to client.

You can think about liveview-clj as stateful web handlers or Rich Web Application running on server side.

Usage

See examples

Start examples

clj -A:examples and open in browser http://localhost:8000/increment or http://localhost:8000/todo

About


Languages

Language:CSS 52.5%Language:Clojure 41.6%Language:JavaScript 5.5%Language:Emacs Lisp 0.5%