https://github.com/lastleaf/maomi
Strict and Performant Web Application Programming in Rust
https://github.com/lastleaf/maomi
rust webassembly webframework
Last synced: 11 months ago
JSON representation
Strict and Performant Web Application Programming in Rust
- Host: GitHub
- URL: https://github.com/lastleaf/maomi
- Owner: LastLeaf
- License: mit
- Created: 2019-09-22T16:32:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T03:50:35.000Z (almost 2 years ago)
- Last Synced: 2025-01-03T00:11:55.444Z (over 1 year ago)
- Topics: rust, webassembly, webframework
- Language: Rust
- Homepage: https://lastleaf.cn/maomi/en_US
- Size: 301 KB
- Stars: 23
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# maomi
Strict and Performant Web Application Programming
  
```rust
#[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](http://lastleaf.cn/maomi/en_US) for details.
去 [中文版站点](http://lastleaf.cn/maomi/zh_CN) 了解详情。
## Examples
See [dom-template](./maomi-dom-template/) for the basic example. Compile with:
```sh
wasm-pack build maomi-dom-template --target no-modules
```
## Run Tests
General rust tests and wasm-pack tests are both needed.
```sh
cargo test
wasm-pack test --firefox maomi-dom # or --chrome
```