Struct mdblog::Theme
[−]
[src]
pub struct Theme { pub root: PathBuf, pub name: String, pub renderer: Tera, // some fields omitted }
blog theme object
Fields
root: PathBuf
theme root directory
name: String
theme name
renderer: Tera
theme renderer
Methods
impl Theme
[src]
pub fn new<P: AsRef<Path>>(root: P, name: &str) -> Result<Theme>
[src]
pub fn init_dir(&self, name: &str) -> Result<()>
[src]
create theme directory.
pub fn export_static<P: AsRef<Path>>(&self, root: P) -> Result<()>
[src]
export theme static files.