Strict and Performant Web Application Programming
#[component]
struct HelloWorld {
template: template! {
"Hello world!"
}
}
- 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.
去 中文版站点 了解详情。
See dom-template for the basic example. Compile with:
wasm-pack build maomi-dom-template --target no-modules
General rust tests and wasm-pack tests are both needed.
cargo test
wasm-pack test --firefox maomi-dom # or --chrome