unreact 0.2.0-alpha2

A static site generation framework for Rust using Handlebars and Scss.
Documentation
use unreact::prelude::*;

fn main() -> Result<(), Error> {
    let is_dev = true;

    let config = Config {
        strict: true,
        ..Config::default()
    };

    let mut app = Unreact::new(config, is_dev, "https://bruh.news/")?;

    app.globalize(object! {
        debug: "(^_^)"
    });

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

    app.run()?;

    println!("Compiled successfully");

    Ok(())
}