From c6b79938eaf127275536fdb2796e44c79a232a59 Mon Sep 17 00:00:00 2001 From: Wancat Date: Thu, 17 Nov 2022 17:16:17 +0800 Subject: [PATCH] Add archetypes files --- tx/expense.txt => archetypes/default.tpl | 0 main.go | 2 -- tx/cash.txt | 4 ---- tx/withdraw.txt | 4 ---- 4 files changed, 10 deletions(-) rename tx/expense.txt => archetypes/default.tpl (100%) delete mode 100644 tx/cash.txt delete mode 100644 tx/withdraw.txt diff --git a/tx/expense.txt b/archetypes/default.tpl similarity index 100% rename from tx/expense.txt rename to archetypes/default.tpl diff --git a/main.go b/main.go index 23f67d2..086a0d4 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,6 @@ import ( "github.com/lancatlin/ledger-quicknote/auth" ) -var ledgerTpl *template.Template var htmlTpl *template.Template var DATA_DIR string @@ -20,7 +19,6 @@ var HOST string var store auth.AuthStore func init() { - ledgerTpl = template.Must(template.ParseGlob("tx/*")) flag.StringVar(&DATA_DIR, "d", "data", "data folder") flag.StringVar(&HOST, "b", "127.0.0.1:8000", "binding address") var hashKeyString string diff --git a/tx/cash.txt b/tx/cash.txt deleted file mode 100644 index fb234cb..0000000 --- a/tx/cash.txt +++ /dev/null @@ -1,4 +0,0 @@ -{{ .Date }} * cash - cash ${{ .Amount }} - assets:cash - diff --git a/tx/withdraw.txt b/tx/withdraw.txt deleted file mode 100644 index 77cd60f..0000000 --- a/tx/withdraw.txt +++ /dev/null @@ -1,4 +0,0 @@ -{{ .Date }} * withdraw - assets:cash ${{ .Amount }} - assets:checking -