From 91241e4e2c724eb38f7fdb0c03dcb475e1823409 Mon Sep 17 00:00:00 2001 From: zztkm Date: Sat, 30 Jul 2022 02:24:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/template.v | 4 +++- vss.v | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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