orestaty 1.0.0

HTML-centered handlebars-based static site generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;
use std::path::Path;

impl OreStaty<'_> {
    /// Build an HTML page from the file using Handlebars
    pub fn build_sass(
        &mut self,
        src: &Path,
        relative_path: &Path,
    ) -> Result<String, ()> {
        self.unwrap_or_error(
            grass::from_path(src, &self.sass_options),
            format!("Failed to render {:?} using SASS", relative_path),
        )
    }
}