This commit is contained in:
Jacob Brown 2017-07-21 16:20:34 -05:00
parent a2894b10ab
commit 460af2ebf0
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ impl Template {
}) })
} }
/// Returns the path to the template root directory
pub fn root(config: &Config) -> PathBuf { pub fn root(config: &Config) -> PathBuf {
let mut template_root = config.root().join(DEFAULT_TEMPLATE_DIR); let mut template_root = config.root().join(DEFAULT_TEMPLATE_DIR);
match config.get_str("template_dir") { match config.get_str("template_dir") {