| Crates.io | hobo_css_macros |
| lib.rs | hobo_css_macros |
| version | 1.0.0-rc.1 |
| created_at | 2020-07-21 15:22:17.975646+00 |
| updated_at | 2025-05-08 14:15:14.045928+00 |
| description | hobo is a Rust frontend framework |
| homepage | |
| repository | https://github.com/zygomedia/hobo |
| max_upload_size | |
| id | 267652 |
| size | 32,940 |
hobo is an opinionated, batteries-included Rust frontend framework. Works on stable Rust.
STILL WIP although used in production by Zygo Media.
Check out the Book!
web_sys::HtmlElementpub use hobo::{
prelude::*,
create as e,
signals::signal::{Mutable, SignalExt}
};
fn counter() -> impl hobo::AsElement {
let counter = Mutable::new(0);
e::div()
.class((
css::display::flex,
css::flex_direction::column,
css::width::px(400),
))
.child(e::div()
.text_signal(counter.signal_ref(|value| {
format!("Counter value is: {value}")
}))
)
.child(e::button()
.text("increment")
.on_click(move |_| *counter.lock_mut() += 1)
)
}
TODO: