Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorkoenders/web_prototype
Rapid web prototyping framework
https://github.com/victorkoenders/web_prototype
Last synced: 18 days ago
JSON representation
Rapid web prototyping framework
- Host: GitHub
- URL: https://github.com/victorkoenders/web_prototype
- Owner: VictorKoenders
- Created: 2022-07-31T11:52:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T06:14:30.000Z (over 2 years ago)
- Last Synced: 2024-11-05T18:56:45.450Z (2 months ago)
- Language: Rust
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rapid web prototyping framework
This is a framework made to quickly build interactive web applications in Rust.
The root crate is the implementation of the framework. The framework itself can be found in `/framework` and `/framework/derive`
**THIS IS A PROOF OF CONCEPT AND NOT READY FOR PRODUCTION**
# Features
- Generates HTML structures based on your data structs:
- Labels (default)
- Tables (add `#[table]`, then multiple `#[column(field = "name", header = "Name")]`)
- TODO:
- Forms
- Supports automatic reloading through [knockout](https://knockoutjs.com/)# TODO:
Adding an `#[action(...)]` to your data structure should add a link. This link will then call a function you define. e.g.:
```rust
#[derive(Default, Page, Serialize, Deserialize)]
#[action(name = "Say hi!", fn = "say_hi")]
struct Foo;impl Foo {
async fn say_hi(&self, _: Request<()>) -> Result {
println!("Hello!")
}
}
```