builder

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PermReadWrite os.FileMode = 0666

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(opts ...BuilderOption) *Builder

func (*Builder) BuildAll

func (b *Builder) BuildAll() *Filesystem

func (*Builder) RegComps

func (b *Builder) RegComps(components ...*Component)

func (*Builder) RegDark

func (b *Builder) RegDark(components ...*Component)

type BuilderOption

type BuilderOption func(b *Builder)

type Component

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

func NewComponent

func NewComponent(
	pagepath utils_types.FilePath,
	templ_comp templ.Component,
) *Component

func (*Component) Write

func (h *Component) Write(gp types.GlobalParams) WriteResult

type Filesystem

type Filesystem struct {
	Files map[utils_types.FilePath][]byte
	// contains filtered or unexported fields
}

Filesystem allows us to write to files to memory for later reusage in web app serving static assets from memory Optionally same filesystem supports rendering to local, for deployment of static assets

func NewFileystem

func NewFileystem(build_root utils_types.FilePath) *Filesystem

func (*Filesystem) RenderToLocal

func (f *Filesystem) RenderToLocal()

func (*Filesystem) WriteToMem

func (f *Filesystem) WriteToMem(path utils_types.FilePath, content []byte)

type WriteResult

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

Jump to

Keyboard shortcuts

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