assets

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package assets embeds the client JavaScript, CSS, and vendor libraries

Index

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 ClientFS

func ClientFS() fs.FS

ClientFS returns the embedded client files

func GetChartJS

func GetChartJS() ([]byte, error)

GetChartJS returns the Chart.js library

func GetClientCSS

func GetClientCSS() ([]byte, error)

GetClientCSS returns the browser CSS bundle

func GetClientJS

func GetClientJS() ([]byte, error)

GetClientJS returns the browser JavaScript bundle

func GetMermaidJS

func GetMermaidJS() ([]byte, error)

GetMermaidJS returns the Mermaid.js library

func GetPicoCSS

func GetPicoCSS() ([]byte, error)

GetPicoCSS returns the Pico CSS framework

func GetPrismCSS

func GetPrismCSS() ([]byte, error)

GetPrismCSS returns the Prism.js theme CSS

func GetPrismJS

func GetPrismJS() ([]byte, error)

GetPrismJS returns the Prism.js core library

func GetPrismLanguage

func GetPrismLanguage(lang string) ([]byte, error)

GetPrismLanguage returns a Prism language component. The language must be in the SupportedPrismLanguages whitelist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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