This commit is contained in:
zztkm 2022-07-30 02:24:29 +09:00
parent 457d90bdb0
commit 91241e4e2c
2 changed files with 10 additions and 3 deletions

View file

@ -8,6 +8,8 @@ struct Template {
template string
}
fn parse() {}
fn parse(template string, target map[string]any) string {
}
fn execute() {}

9
vss.v
View file

@ -30,9 +30,14 @@ fn get_paths(path string) []string {
return mds
}
fn get_config_map() map[string]string {
mut confg_map := map[string]string{}
// https://modules.vlang.io/toml.html
config := toml.parse_file(default_config)?
}
fn generate_index_page() ? {
config_text := os.read_file(default_config)?
config := toml.parse_text(config_text)?
index_md := os.read_file(default_index)?
// for $tmpl value