skhtml/examples/dodrio/todomvc
Samuel El-Borai 9d5f32ba9b cargo clippy --fix -- --allow unused_braces
- The '--allow unused_braces' is to avoid removing the extra curly
  braces used within html! macro calls.
2022-01-27 18:16:32 +00:00
..
src cargo clippy --fix -- --allow unused_braces 2022-01-27 18:16:32 +00:00
Cargo.toml Fix build errors for examples 2022-01-27 18:16:32 +00:00
README.md Support boolean attrs, child blocks, and port TodoMVC example. 2019-03-16 21:14:38 +00:00
index.html Support boolean attrs, child blocks, and port TodoMVC example. 2019-03-16 21:14:38 +00:00

README.md

TodoMVC

dodrio implementation of the popular TodoMVC app. It correctly and completely fulfills the specification to the best of my knowledge.

Source

There are a number of modules in this dodrio implementation of TodoMVC. The most important are:

  • src/lib.rs: The entry point to the application.
  • src/todos.rs: Definition of Todos model and its rendering.
  • src/todo.rs: Definition of Todo model and its rendering.
  • src/controller.rs: The controller handles UI interactions and translates them into updates on the model. Finally, it triggers re-rendering after those updates.
  • src/router.rs: A simple URL hash-based router.

Build

wasm-pack build --target no-modules

Serve

Use any HTTP server, for example:

python -m SimpleHTTPServer