/// Replacing template placeholder values with user-defined values.
Replacing template placeholder values with user-defined values.
Replacing template placeholder values with user - defined values .
fn search_and_replace(&self, s: String) -> String {
        let current_year = chrono::Local::now().year();
        s.replace("$$PROJECT_NAME", &self.name)
            .replace("$$CURRENT_YEAR", &current_year.to_string())
            .replace("$$PROJECT_AUTHOR", &self.author)
    }
fn search_and_replace ( & self , s : String ) -> String { let current_year = chrono :: Local :: now ( ) . year ( ) ; s . replace ( " " , & self . name ) . replace ( " " , & current_year . to_string ( ) ) . replace ( " " , & self . author ) }
Replacing template placeholder values with user-defined values.
Replacing template placeholder values with user - defined values .
&self
s
String