]> git.r.bdr.sh - rbdr/page/blame - src/main.rs
Read the files
[rbdr/page] / src / main.rs
CommitLineData
8d4fac52 1mod gemini_parser;
1e2d00b6
RBR
2mod file_finder;
3mod file_handler;
4
5use std::env::current_dir;
8d4fac52
RBR
6
7use crate::gemini_parser::parse;
1e2d00b6 8use crate::file_finder::find_files;
8d4fac52
RBR
9
10fn main() {
11 let gemini_source = "# Test\n## 2nd H\na line\n another line\n```\npreformat\n=> preformat\n```\n=> http://lol.com\n=> http://lol.com lol\n* lol\nbla\n* lol\n* lmao\n> blabla\n> blabla";
12 let html = parse(gemini_source);
1e2d00b6
RBR
13 println!("{}", html);
14
15 let files = find_files(current_dir().unwrap());
16 println!("Found {} files", files.len());
8d4fac52 17}