Documentation
¶
Overview ¶
Package www embeds the built clicky-ui single-page app and serves it with an index.html fallback for client-side routes. The real assets are produced by `vite build` into dist/, which is gitignored: run `make ui-build` (or `task www:build`) before a source checkout compiles. Release tags point at a commit off main that carries the built dist/, so module consumers compile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns an http.Handler that serves the embedded SPA. Existing files under dist/ are served directly; unknown non-asset paths fall back to index.html so client-side routing works.
The app may be mounted under a prefix the host strips (http.StripPrefix): index.html is then served with its <base> at that prefix, read from the difference between the path the client asked for and the one left here.
Types ¶
This section is empty.