dom

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator added in v0.2.6

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

func New

func New(module *gomod.Module, transformer *transformrt.Map) *Generator

func (*Generator) Compile added in v0.2.6

func (c *Generator) Compile(fsys fs.FS) ([]esbuild.OutputFile, error)

Compile into a list of views for embedding

func (*Generator) GenerateDir added in v0.2.6

func (c *Generator) GenerateDir(fsys genfs.FS, dir *genfs.Dir) error

GenerateDir generates a directory of compiled files

func (*Generator) ServeFile added in v0.2.6

func (c *Generator) ServeFile(fsys genfs.FS, file *genfs.File) error

ServeFile generates a single file, used in development

Jump to

Keyboard shortcuts

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