Skip to content

njaremko/liveview-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

  • Click, text input, and submit events are sent to server and the template is re-rendered and sent to client, then morphdom applies the change to the dom.
  • Built 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

About

PoC of LiveView in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published