Age | Commit message (Collapse) | Author |
|
There is no reason anymore to work with a closure here. This commit
makes the code more readable.
|
|
This removes the need to pass the configuration struct to every
function.
|
|
|
|
This allows to parse the templates during startup and use them in each
HTTP handler without explicit passing to these handlers.
|
|
Using a function returning a closure does not really make sense here.
|
|
|
|
|
|
This function just increases function nesting and makes the code less
readable.
|
|
io/ioutil should not be used since Go 1.16.
|
|
The embed package makes it useless to handle static files from the
source tree during runtime. All those files go simply to the embed.FS
variable and are thus embedded into the binary which is easier to
handle.
|
|
This removes the need to deploy the simple.css file to the target
machine.
|
|
Comments inside functions are not that helpful. While the functino
docstring should explain everything to a user, the implementation inside
should speak for itself.
|
|
|
|
This very simple CSS framework is far better / beautiful / easy to
maintain than my own CSS.
|
|
Passing this as part of the configuration file is not flexible. With
args it can be easily tweaked for the debug use case while the default
path for production is included in the argument parsing.
|
|
|
|
|
|
|
|
|
|
|