Menu

Wisp - A fast, fun web framework for Rust
📰

Wisp - A fast, fun web framework for Rust

DEV Community: rust·Cooper Ransom·2 days ago
#5gvUTs8w
#devtorust#devto#dev#wisp#rust
Reading 0:00
15s threshold

Hi, I built Wisp, a web framework for Rust. Here is a 90-second video of it: https://www.youtube.com/watch?v=g0LPPzrQux8

The idea: a folder is a URL, and its +page.wisp file is the page. The top of the file is a short block of Rust that loads data and handles forms, and the rest is markup. The templates compile to Rust, so the compiler checks your markup, and the whole app (styles and static files too) ships as one binary.

--- let name = cx.query_or("name", "world".to_string()); --- <h1>Hello, ${name}!</h1>

Enter fullscreen mode

Exit fullscreen mode

Things I cared about:

Forms work with JavaScript off.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.