A static site generator written in Rust
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

page.rs 376B

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. // }