A static site generator written in Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. // #[derive(Debug)]
  2. // pub struct Page {
  3. // pub title: String,
  4. // pub body: String,
  5. // pub slug: String,
  6. // }
  7. // impl Page {
  8. // fn render(&self, template: &str) -> String {
  9. // template
  10. // .replace("{{ title }}", &self.title)
  11. // .replace("{{ slug }}", &self.slug)
  12. // .replace("{{ body }}", &self.body)
  13. // }
  14. // }