123456789101112131415 |
- // #[derive(Debug)]
- // pub struct Page {
- // pub title: String,
- // pub body: String,
- // pub slug: String,
- // }
-
- // impl Page {
- // fn render(&self, template: &str) -> String {
- // template
- // .replace("{{ title }}", &self.title)
- // .replace("{{ slug }}", &self.slug)
- // .replace("{{ body }}", &self.body)
- // }
- // }
|