diff options
| author | mihna123 <mihailonvojinovic@gmail.com> | 2026-09-04 01:29:39 +0200 |
|---|---|---|
| committer | mihna123 <mihailonvojinovic@gmail.com> | 2026-09-04 01:29:39 +0200 |
| commit | 668c151379ea1d9ff77505d74f751ed83a8af029 (patch) | |
| tree | c19ed88cef013e34aea1ada97baff516cfbe2f73 /cmd | |
| parent | 2e227424ba3a5bcc703936c35bcadba8cda0931f (diff) | |
| download | openstore-668c151379ea1d9ff77505d74f751ed83a8af029.tar.gz openstore-668c151379ea1d9ff77505d74f751ed83a8af029.zip | |
web: serve the stylesheet over a css route
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.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
