Hirola
Hirola is an un-opinionated webf ramework that is focused on simplicity and predictability.
Goals
- Keep it simple. A simple and declarative way to build web UIs in rust with a small learning curve.
- Make it easy to read, extend and share code. Mixins and components are kept simple and macro-free.
- No context, you can choose passing props down, and/or use the
global-state. - Familiality. Uses rsx which is very similar to jsx.
Example
We are going to create a simple counter program.
cargo new counter
With a new project, we need to create an index file which is the entry point and required by trunk
cd counter
Create an index.html in the root of counter. Add the contents below
Hirola Counter
Lets add some code to src/main.rs
use *;
Now lets run our project
trunk serve
You should be able to get counter running: Live Example
Ecosystem
Check out Hirola Docs written with Hirola itself!
Here are some extensions for hirola:
Milestones
| Status | Goal | Labels |
|---|---|---|
| ✔ | Write code that is declarative and easy to follow | ready |
| ✔ | Allow extensibility via mixins | ready |
| 🚀 | Standardize Components | ready |
| 🚀 | SSR | ready |
| 🚀 | Hydration | todo |
| 🚀 | Serverside integrations | todo |
Inspiration
- Sycamore
- Alpine.js
- React.js
- Yew
Demo examples
This API will certainly change.
Go to examples and use trunk
$ trunk serve
Prerequisite:
You need need to have rust, cargo and trunk installed.
License: MIT