jsx my life up
- Gone is the "monorepo", now there's just two crates!
ryde
andryde_macros
- Simplified api
- Jsx instead of builder syntax
- css crate is gone, just use tailwind
Here's a quick look:
use ryde::*;
routes!(
("/", get(get_slash)),
("/*files", get(get_files))
);
embed_static_files!("static");
#[main]
async fn main() {
serve("::1:9001", routes()).await
}
async fn get_slash() -> Html {
html! {
<!DOCTYPE html>
<html lang="en">
<head>
<title>ryde with rust</title>
{render_static_files!()}
</head>
<body>
<h1 class="text-2xl">ryde with rust</h1>
</body>
</html>
}
}
Changes
- feat: introduce onerror attribute by @enismustafaj in #2
- Bump h2 from 0.4.2 to 0.4.4 by @dependabot in #3
- Simplify by @swlkr in #4
New Contributors
- @enismustafaj made their first contribution in #2
Full Changelog: 0.1.3...0.3.0