Submillisecond LiveView
A LiveView implementation for the submillisecond web framework built with lunatic.
What is LiveView?
LiveView provides rich, real-time user experiences with server-rendered HTML.
The LiveView programming model is declarative: instead of saying "once event X happens, change Y on the page", events in LiveView are regular messages which may cause changes to its state. Once the state changes, LiveView will re-render the relevant parts of its HTML template and push it to the browser, which updates itself in the most efficient manner. This means developers write LiveView templates as any other server-rendered HTML and LiveView does the hard work of tracking changes and sending the relevant diffs to the browser.
It was made popular by the Phoenix webframework for Elixir.
Prerequisites
Lunatic runtime is required, along with the wasm32-wasi target.
It is also recommended to add a .cargo/config.toml file with the build target and runner configured.
# .cargo/config.toml
[]
= "wasm32-wasi"
[]
= "lunatic"
Code example
use ;
use ;
use *;
Running examples
Clone the repository
Run an example
License
Licensed under either of
- Apache License, Version 2.0, (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.