sherwood 0.8.0

A static site generator with built-in development server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::templates::SidebarNavData;
use sailfish::TemplateOnce;

#[derive(TemplateOnce)]
#[template(path = "partials/sidebar_nav.stpl")]
pub struct SidebarNav {
    pub sidebar_nav: SidebarNavData,
}

impl SidebarNav {
    pub fn new(data: SidebarNavData) -> Self {
        Self { sidebar_nav: data }
    }
}