Documentation
¶
Overview ¶
Package render builds the tool.RenderFunc that wraps a body fragment in wick's page shell (Layout + Navbar). Lives outside internal/pkg/ui to avoid an import cycle with internal/login (which already depends on ui).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToolRenderer ¶
func NewToolRenderer(meta tool.Tool, hasConfigs bool) tool.RenderFunc
NewToolRenderer builds a tool.RenderFunc that wraps a body fragment in the wick page shell (Layout + Navbar + per-tool chrome) and writes the full HTML response. meta.Name is the <title>; meta.Key drives the floating [⚙ Settings] pill, shown to admins when hasConfigs is true.
Setup-required banners are rendered per-module on the manager detail pages (/manager/tools/{key}, /manager/jobs/{key}) — the tool renderer no longer surfaces them because operators see the warning on the module's own surface when it needs configuration.
Handlers that return JSON, file downloads, or redirects should write to the ResponseWriter directly and not call the returned RenderFunc.
Types ¶
This section is empty.