summaryrefslogtreecommitdiff
path: root/internal/web
Commit message (Collapse)AuthorAge
* legal: add a mit licencemihna1232026-09-10
|
* web: simplify style.css even moremihna1232026-09-04
| | | | | Don't want to start styling too early. Want to do that at the end as currently the shape of the website is very foggy.
* web: serve the stylesheet over a css routemihna1232026-09-04
| | | | | | | | | | | Embed the css directory alongside the templates and serve it with a FileServerFS mounted on GET /css/. The directory name matches the url prefix, so the file resolves without an fs.Sub and there is no error path to handle. Adding js later is the same one line. Cover the route in the handler tests, including that template sources stay unreachable and that the href the home page emits resolves to a file that is actually served.
* config: add config package and wire it into server and handlersmihna1232026-09-04
| | | | | | | | | | | Replace the hardcoded server.Config with an ini-backed config package that reads /etc/openstore/openstore.conf then the user's config file, so user settings override system ones and both override the built-in defaults. Missing files are ignored rather than fatal. Move route registration into a handlers package that owns the templates and builds a Page view model, which removes the server -> handlers import cycle along with the setter-based context injection.
* server: use server config to render the index templatemihna1232026-08-21
|
* server: serve html template from embedded fsmihna1232026-08-21