Download Latest Version jsx my life up source code.tar.gz (27.9 kB)
Email in envelope

Get an email when there's a new version of ryde

Home / 0.3.0
Name Modified Size InfoDownloads / Week
Parent folder
jsx my life up source code.tar.gz 2024-05-07 27.9 kB
jsx my life up source code.zip 2024-05-07 36.2 kB
README.md 2024-05-07 1.3 kB
Totals: 3 Items   65.4 kB 0

jsx my life up

  • Gone is the "monorepo", now there's just two crates! ryde and ryde_macros
  • Simplified api
  • Jsx instead of builder syntax
  • css crate is gone, just use tailwind

Here's a quick look:

:::rust
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

New Contributors

Full Changelog: https://github.com/swlkr/ryde/compare/0.1.3...0.3.0

Source: README.md, updated 2024-05-07