1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// pub mod lib;
//
// use dynamic_html::{DynamicHtml, GenerateOptions};
//
//
// fn main() {
// let html = "\
// <!DOCTYPE html>\
// <html>\
// <head>\
// {$ a1, a2, a3 from \"some-library\" as DEFAULT}
// {$ a1, a2, a3 from \"./some-file\" as DEFAULT}
// </head>\
// <body>\
// {#const a = b}\
// {!if (a)}\
// {a * 2}\
// {/else}\
// No variable\
// {/}\
// \"I'm the best hacker jajajajaj\"\
// </body>\
// </html>\
// ";
//
// let dynamic = DynamicHtml::parse(&html.to_string());
//
// println!("{:#?}", &dynamic);
//
// println!(
// "{}",
// &dynamic.unwrap().generate(
// &GenerateOptions::new("/a/a.html".to_string(), "/b/b.html".to_string())
// .set_header("// deno-lint-ignore-file".to_string())
// .add_import("import some_module from 'a file'".to_string())
// .add_import("import some_module from 'a file'".to_string())
// .add_import("import some_module from 'a file'".to_string())
// .add_import("import some_module from 'a file'".to_string())
// .add_import("import some_module from 'a file'".to_string())
// .add_import("import some_module from 'a file'".to_string())
// )
// );
// }