cedar
is a functional-reactive framework.
Status: cedar
is in the alpha stage - not yet ready for prime-time.
Add cedar
to your project via cargo.
```rust extern crate cedar;
use cedar::dom; use cedar::dom::Builder;
type Model = i32;
enum Message { Increment, Decrement, }
fn update(model: Model, message: Message) -> Model { match message { Message::Increment => model + 1, Message::Decrement => model - 1, } }
fn view(model: &Model) -> dom::Object
fn main() { cedar::program(0, update, view) } ```
A cedar
application is composed of a model, update, and view. TODO: expand on this....
Inspired by: - elm-lang - shoes-rb
cedar
is Copyright © Tom Schroeder j.tom.schroeder@gmail.com and released under MIT license.