render

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL