(mut self, path: P)
| 94 | } |
| 95 | |
| 96 | pub fn dynamic_file<P: AsRef<Path>>(mut self, path: P) -> Result<Self> { |
| 97 | self.dynamic = std::fs::read_to_string(path.as_ref())?; |
| 98 | Ok(self) |
| 99 | } |
| 100 | |
| 101 | pub fn template(mut self, template: String) -> Self { |
| 102 | self.template = template; |