unreact 0.2.0-alpha3

A static site generation framework for Rust using Handlebars and Scss.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use unreact::prelude::*;

fn main() -> Result<(), Error> {
    let mut app = Unreact::new(Config::default(), false, "https://example.com")?;

    app.index("page", object! {message: "World!"})
        .not_found("404", object! {})
        .route_raw("hello", "this is my hello page".to_string())
        .route_bare("article", "other/article");

    app.compile()
}