Struct porteurbars::Template
[−]
[src]
pub struct Template { pub path: PathBuf, }
A template holds a path to template source and a file describing the default values associated with names used in the template
Fields
path: PathBuf
path to template source
Methods
impl Template
[src]
fn new<P>(path: P) -> Template where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
fn apply<P, R>(
&self,
target: P,
root: Option<R>,
yes: bool,
keep: bool
) -> Result<()> where
P: AsRef<Path>,
R: AsRef<Path>,
[src]
&self,
target: P,
root: Option<R>,
yes: bool,
keep: bool
) -> Result<()> where
P: AsRef<Path>,
R: AsRef<Path>,
Apply template