asset

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAsset

func AppendAsset(asset *StaticAsset)

func CssFile

func CssFile(assetName string) string

func JsFile

func JsFile(assetName string) string

func Load

func Load(themeDir string, force bool)

func OtherFile

func OtherFile(assetName string) string

Types

type StaticAsset

type StaticAsset struct {
	Name          string `json:"name"`
	Path          string `json:"path"`
	Type          string `json:"type"`
	Content       string `json:"content"`
	DisableMinify bool   `json:"disable_minify"`
	DisableInline bool   `json:"disable_inline"`
}

func All

func All() []*StaticAsset

type ThemeConfig

type ThemeConfig struct {
	Asset struct {
		Dir           string   `json:"dir"`
		DisableMinify []string `json:"disable_minify"`
		DisableInline []string `json:"disable_inline"`
	} `json:"asset"`
}

Jump to

Keyboard shortcuts

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