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
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
}
Click to show internal directories.
Click to hide internal directories.