static

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(conf config.Config, theme theme.Theme, hooks Hooks) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

func (*Builder) Write

func (b *Builder) Write(files []*Static) error

type Hook

type Hook interface {
	BeforeStaticWrite(*Static) *Static
	BeforeStaticsWrite(Statics) Statics
}

type Hooks

type Hooks []Hook

func (Hooks) BeforeStaticWrite

func (hooks Hooks) BeforeStaticWrite(static *Static) *Static

func (Hooks) BeforeStaticsWrite

func (hooks Hooks) BeforeStaticsWrite(statics Statics) Statics

type Static

type Static struct {
	URL  string
	File interface {
		io.Reader
		Name() string
	}
}

type Statics

type Statics []*Static

func (Statics) Lookup

func (statics Statics) Lookup(files []string) Statics

Jump to

Keyboard shortcuts

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