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::NextPrevNavData;
use sailfish::TemplateOnce;

#[derive(TemplateOnce)]
#[template(path = "partials/next_prev_nav.stpl")]
pub struct NextPrevNav {
    pub nav: NextPrevNavData,
}

impl NextPrevNav {
    pub fn new(data: NextPrevNavData) -> Self {
        Self { nav: data }
    }
}