Documentation
¶
Overview ¶
Package assets embeds the client JavaScript, CSS, and vendor libraries
Index ¶
- Variables
- func ClientFS() fs.FS
- func GetChartJS() ([]byte, error)
- func GetClientCSS() ([]byte, error)
- func GetClientJS() ([]byte, error)
- func GetMermaidJS() ([]byte, error)
- func GetPicoCSS() ([]byte, error)
- func GetPrismCSS() ([]byte, error)
- func GetPrismJS() ([]byte, error)
- func GetPrismLanguage(lang string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedPrismLanguages = map[string]bool{ "go": true, "javascript": true, "jsx": true, "markup": true, "css": true, "yaml": true, "json": true, "bash": true, "markdown": true, }
SupportedPrismLanguages is the whitelist of available Prism language components
Functions ¶
func GetClientJS ¶
GetClientJS returns the browser JavaScript bundle
func GetPrismLanguage ¶
GetPrismLanguage returns a Prism language component. The language must be in the SupportedPrismLanguages whitelist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.