resource

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package resource exposes embedded templates and static assets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetsFS added in v0.0.4

func GetAssetsFS() (fs.FS, error)

GetAssetsFS returns the built asset filesystem for the current environment.

func GetStaticFS

func GetStaticFS() (fs.FS, error)

GetStaticFS returns the static asset filesystem for the current environment.

func GetTemplateFS added in v0.1.1

func GetTemplateFS() fs.FS

GetTemplateFS returns the template filesystem for the current environment.

Types

type ThemeConfig added in v0.1.1

type ThemeConfig struct {
	Name             string `json:"name"`
	Description      string `json:"description"`
	Version          string `json:"version"`
	ViteDevServerURL string `json:"ViteDevServerURL"`
	Manifest         string `json:"manifest"`
}

ThemeConfig describes the front-end resource bundle metadata.

func GetThemeConfig added in v0.1.1

func GetThemeConfig() (*ThemeConfig, error)

GetThemeConfig reads the theme metadata from the template filesystem.

Jump to

Keyboard shortcuts

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