arcature 0.1.3

Arcature: an opinionated full-stack Rust web framework. One package, batteries included.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The welcome page.

use arcature::prelude::*;

/// Props for the `home` component.
///
/// Every field here crosses the wire and is visible in the browser's page
/// data, so this struct is the exposure boundary for what `/` sends.
#[page("home")]
pub struct HomePage {
    /// The greeting shown in the hero.
    pub message: String,
    /// The configured application name, rendered in the navigation bar.
    pub app_name: String,
    /// The Arcature version this project was generated against.
    pub arcature_version: String,
}