Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 845 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 845 Bytes

Current build status LoC

Isymtope

Experimental hybrid redux+IncrementalDOM client and server-side rendering in Rust. (Pronounced like isomorphic + asymtope)

Here's the classic counter example:

use html;

store {
    let counter = 0;

    counter {
        action increment => value + 1;
        action decrement => value - 1;
    }
}

component counter {
    h4 { "Counter: " { counter } }
    p (class="actions") {
        a (href="#decrement") || { dispatch decrement to counter; } { "Decrement" }
        { " | " }
        a (href="#increment") || { dispatch increment to counter; } { "Increment" }
    }
}

counter (x="counter") {}

Running the example

[TODO: update these instructions]