]> git.r.bdr.sh - rbdr/blog/blame - src/generator/html.rs
Add tokenizer
[rbdr/blog] / src / generator / html.rs
CommitLineData
29982470
RBR
1use std::io::Result;
2use std::path::PathBuf;
3use crate::post::Post;
4use crate::template::{find, parse};
5
6pub fn generate(_: &PathBuf, template_directory: &PathBuf, _: &PathBuf, _: &Vec<Post>) -> Result<()> {
7 println!("READING TEMP");
8 match find(template_directory, "index.html") {
9 Some(template) => {
10 let parsed_template = parse(&template);
11 for token in parsed_template.tokens {
12 println!("TOKEN {}", token);
13 }
14 },
15 None => {}
16 }
17 Ok(())
18}