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 -