package
Version:
v4.1.0
Opens a new window with list of versions in this module.
Published: Jul 5, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GWC | Prerender Library
GoWebComponents (GWC)
High-Level Overview
The prerender library supports ahead-of-time and server-side render preparation utilities for GWC content.
Public APIs
- Functions:
Export
- Types:
ExportSummary, Route, RouteOutput, Target
- Variables: none
- Constants: none
Subfiles And Purpose
export.go - Core implementation for export
export_additional_test.go - Tests for export_additional behavior
export_test.go - Tests for export behavior
File Map
prerender/
|-- export.go
|-- export_additional_test.go
\-- export_test.go
Documentation
¶
type ExportSummary struct {
HTMLFiles []string
BootstrapFiles []string
}
ExportSummary reports the files emitted by Export.
Export renders the provided routes and writes HTML files plus optional bootstrap sidecars.
Route configures one prerendered route export.
type RouteOutput struct {
HTML string
Bootstrap []byte
}
RouteOutput holds the rendered HTML and optional bootstrap payload for one route.
Target describes the computed output locations for one prerendered route.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.