mirror of https://github.com/rwf2/Rocket.git
add doc
This commit is contained in:
parent
a2894b10ab
commit
460af2ebf0
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue