Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbeddedFS embed.FS
Functions ¶
func ComputeVersion ¶
ComputeVersion hashes the portal asset files to produce a short cache-busting token. Call this once at startup; the result is stable for the lifetime of the process.
func GenerateHTML ¶
GenerateHTML renders the portal index.html from the given data.
Types ¶
type HTMLData ¶
type HTMLData struct {
AssetsBase string // URL prefix for portal assets, e.g. "/portal/assets/"
Version string // cache-busting query param value
}
HTMLData holds the data passed to the portal HTML template. Add fields here to inject global variables or server-side config into the page.
Click to show internal directories.
Click to hide internal directories.