diff --git a/template/template.v b/template/template.v index 8267d56..2e291bd 100644 --- a/template/template.v +++ b/template/template.v @@ -8,6 +8,8 @@ struct Template { template string } -fn parse() {} +fn parse(template string, target map[string]any) string { +} + fn execute() {} \ No newline at end of file diff --git a/vss.v b/vss.v index 0c3f06b..02fee08 100644 --- a/vss.v +++ b/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