aw-lights/liveview-rust
2021-08-22 12:11:36 -04:00
..
.github Add liveview-rust 2021-08-18 10:02:40 -04:00
js Remove local reference in package.json 2021-08-22 12:09:17 -04:00
src Continue work on rust-liveview 2021-08-21 14:02:08 -04:00
.gitignore Ignore dist 2021-08-21 16:28:14 -04:00
build.rs Clean up build scripts to work on non-nightly rust versions 2021-08-22 12:11:36 -04:00
Cargo.toml Add liveview-rust 2021-08-18 10:02:40 -04:00
CHANGELOG.md Add liveview-rust 2021-08-18 10:02:40 -04:00
LICENSE Add liveview-rust 2021-08-18 10:02:40 -04:00
README.md Add liveview-rust 2021-08-18 10:02:40 -04:00

liveview-rust

PoC of LiveView in rust - "Never write javascript again"

Version Documentation License

This was inspired by the Phoenix Live View project.

An example of how to use this library can be found here.

We follow a similar model, with the only difference being that we send the full html on each render and let the client calculate the diff, instead of sending only diffs to client and letting them apply the change.

What works?

  • We click, text input, and submit events are send to server and template is re-rendered and sent to client, then morphdom applies the change to the dom.
  • Build on Actix-Web at the moment, potentially working with Rocket at some point as well.

Whats left?

  • Testing framework
  • HTML diffs on server side (not nessesary for PoC)
  • Write some macros to make implementation nicer