🚧
This commit is contained in:
parent
457d90bdb0
commit
91241e4e2c
2 changed files with 10 additions and 3 deletions
|
@ -8,6 +8,8 @@ struct Template {
|
|||
template string
|
||||
}
|
||||
|
||||
fn parse() {}
|
||||
fn parse(template string, target map[string]any) string {
|
||||
}
|
||||
|
||||
|
||||
fn execute() {}
|
9
vss.v
9
vss.v
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue