1 unstable release

0.4.0 Mar 19, 2023

#6 in #maomi

Download history 8/week @ 2024-02-12 12/week @ 2024-02-19 34/week @ 2024-02-26 14/week @ 2024-03-04 16/week @ 2024-03-11 15/week @ 2024-03-18 23/week @ 2024-03-25 53/week @ 2024-04-01 6/week @ 2024-04-08 8/week @ 2024-04-15 13/week @ 2024-04-22

84 downloads per month
Used in 6 crates (3 directly)

MIT license

12KB
268 lines

maomi

maomi

Strict and Performant Web Application Programming

crates.io docs.rs

#[component]
struct HelloWorld {
    template: template! {
        "Hello world!"
    }
}

Key Features

  • Write rust code, compile to WebAssembly, and run in browser.
  • Great overall performance and no common performance pitfalls.
  • Reports mistakes while compilation.
  • With rust-analyzer installed, easier to investigate elements, properties, and even style classes.
  • Based on templates and data bindings.
  • Limited stylesheet syntax, easier to investigate.
  • High performance server side rendering.
  • I18n in the core design.

Checkout the website for details.

中文版站点 了解详情。

Examples

See dom-template for the basic example. Compile with:

wasm-pack build maomi-dom-template --target no-modules

Run Tests

General rust tests and wasm-pack tests are both needed.

cargo test
wasm-pack test --firefox maomi-dom # or --chrome

Dependencies

~1.6–2.4MB
~47K SLoC