Documentation
¶
Index ¶
Constants ¶
View Source
const BaseTemplate = `` /* 1592-byte string literal not displayed */
View Source
const ErrorTemplate = `` /* 724-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func RenderError ¶
RenderError Renders the error template with the given error
func RenderHTMLString ¶
RenderHTMLString Renders the HTML template in internal/html with the given parameters
Types ¶
type ErrorParams ¶
type Params ¶
type Params struct {
Title string
MetaTags map[string]string
OGMetaTags map[string]string
Links []struct {
Href string
Rel string
Media string
Hreflang string
Type string
Title string
}
JS template.JS
JSPath string // External JS file path (if set, use <script src> instead of inline)
CSS template.CSS
CSSPath string // External CSS file path (if set, use <link href> instead of inline)
PropsJSON template.JS // SSR props as JSON for client hydration
RouteID string
IsDev bool
ServerHTML template.HTML
}
Click to show internal directories.
Click to hide internal directories.