A static site generator written in Rust
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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