pub fn from_input(input: &str, sub: Option<&str>) -> Result<Template> {
        match get_source(input) {
            Source::Git(remote) => Template::from_git(&remote, sub),
            Source::Local(path) => Ok(Template::from_local(&path, sub)),
        }
    }
/// Load a template from a string.
/// It will try to detect whether this is a local folder or whether
/// it should try to clone it.
Load a template from a string.
It will try to detect whether this is a local folder or whether
it should try to clone it.
Load a template from a string . It will try to detect whether this is a local folder or whether it should try to clone it .
pub fn from_input(input: &str, sub: Option<&str>) -> Result<Template> {
        match get_source(input) {
            Source::Git(remote) => Template::from_git(&remote, sub),
            Source::Local(path) => Ok(Template::from_local(&path, sub)),
        }
    }
pub fn from_input ( input : & str , sub : Option < & str > ) -> Result < Template > { match get_source ( input ) { Source :: Git ( remote ) => Template :: from_git ( & remote , sub ) , Source :: Local ( path ) => Ok ( Template :: from_local ( & path , sub ) ) , } }
Load a template from a string.
Load a template from a string .
input
&str
sub
Option<&str>