Documentation
¶
Overview ¶
Package web provides embedded static assets and templ-based UI components and pages for Outtake.
Index ¶
Constants ¶
View Source
const CSRFFormField = "_csrf"
CSRFFormField is the hidden form field name for Fiber CSRF tokens.
Variables ¶
View Source
var Assets embed.FS
Assets contains the embedded static assets (CSS, JavaScript, brand icons).
Functions ¶
func CSRFHeaderJSON ¶
CSRFHeaderJSON returns hx-headers JSON for the CSRF header.
Parameters:
- ctx: Request context that may carry a CSRF token.
Returns:
- JSON object mapping X-Csrf-Token, or empty when no token is set.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
components
|
|
|
Package handlers provides HTTP request handlers for the outtake API and HTML UI.
|
Package handlers provides HTTP request handlers for the outtake API and HTML UI. |
|
Package middleware provides HTTP middleware for the outtake API.
|
Package middleware provides HTTP middleware for the outtake API. |
|
Package theme catalogs selectable UI color palettes.
|
Package theme catalogs selectable UI color palettes. |
|
Package view holds shared HTML view models for Outtake pages and widgets.
|
Package view holds shared HTML view models for Outtake pages and widgets. |
Click to show internal directories.
Click to hide internal directories.