e29bc93f35
show timestamp for logger
2024-01-24 00:09:48 -08:00
64b40c3d82
clean up models
...
move template data functions to their own package
2024-01-23 19:01:59 -08:00
dc51b06b51
it turns out cleanenv already does all that
2024-01-23 18:40:22 -08:00
9ae7151c4d
update readme again
2024-01-23 18:24:29 -08:00
c1dad1a90d
update readme
2024-01-23 18:18:51 -08:00
16397fce66
load template data from json, toml, or yaml
...
because why not, the required modules were already included as dependencies for other things
nothing new in go.mod, just indirect -> direct
2024-01-23 18:16:16 -08:00
e446e6520b
english is hard
2024-01-23 16:34:58 -08:00
25b8822e2f
it's a comma
2024-01-23 16:33:56 -08:00
6a6da043f5
cute little icon for back link
2024-01-23 16:25:04 -08:00
d9434f49ab
some cleanup in render.go
2024-01-23 16:17:44 -08:00
8a2319033e
refactor how template data is handled + load template data from file
...
Generating template data is now handled by templatedata instead of handlers.
Renderer doesn't recieve any data, but now asks for data from templatedata.
Additionally, template data is loaded from file (too lazy to split that into its own commit).
Templates in ./templates/name.page.tmpl will have data loaded from ./templates/name.page.json
2024-01-23 16:10:15 -08:00
ffe303f1c6
generate new template cache if pulling from it fails, instead of bailing out
...
extreme edge case? probably
2024-01-23 14:27:50 -08:00
9a42079ae3
refactor RenderTemplate a bit
2024-01-23 14:08:08 -08:00
21ccdebd7a
log time in format consistent with what is on the page
2024-01-23 13:54:25 -08:00
cff59fe895
don't generate cache on startup if UseCache is false
2024-01-23 13:53:59 -08:00
b9c0bd863b
proper template generation time if not in cache
2024-01-23 13:52:38 -08:00
6b1205e4f3
I don't know why I discarded that when I could've used it
2024-01-23 13:52:38 -08:00
e3253e6434
update gitignore
2024-01-22 22:25:36 -08:00
797be7025b
less awkward wording in footer
2024-01-22 22:20:07 -08:00
33b1b850de
update readme
2024-01-22 22:14:36 -08:00
7544f60e74
move footer note back to right side to display template generation time on left
2024-01-22 22:12:53 -08:00
e17e186c1d
refactor handlers
...
- repeat less
- lay framework for adding more pages
2024-01-22 22:12:19 -08:00
4f97975986
fix bad log formatting
2024-01-22 21:54:33 -08:00
f3f3f4406c
update appwide template cache when new template cache is generated
...
and useCache is off
2024-01-22 21:54:19 -08:00
7bfeb5f940
debug log when template is rendered
2024-01-22 21:52:42 -08:00
a7f6bb35e7
it works!
...
initial build that basically replicates my old HTML site
2024-01-22 20:10:14 -08:00
0d809bfea8
Initial go module
2024-01-18 10:41:36 -08:00
118ba336d1
Initial commit
2024-01-18 13:39:35 -05:00