My static site generator
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.
 

15 lines
338 B

extern crate blep;
use std::path::PathBuf;
use blep::page::{Page, load_page};
fn main() {
if let Some(page) = load_page(PathBuf::from("README.md")) {
match page {
Page::Unknown { path }
=> panic!("Unknown file at {}", path.to_string_lossy()),
Page::Basic { path, meta }
=> println!("Page title: {}", meta.title)
}
}
}