Versions in this module Expand all Collapse all v0 v0.5.0 Jul 17, 2026 v0.4.0 Jul 17, 2026 Changes in this version + var DefaultBufferSize = 4 * 1024 + var ErrInvalidStyleAttributeFunctionSignature = errors.New("invalid function signature, should be in the form func() (string, error)") + var TemplUnsupportedStyleAttributeValue = "zTemplUnsupportedStyleAttributeValue:Invalid;" + func GeneratedTemplate(f func(GeneratedComponentInput) error) templ.Component + func GetBuilder() (sb strings.Builder) + func GetDevModeTextFileName(templFileName string) string + func ReleaseBuffer(w io.Writer) (err error) + func SanitizeStyleAttributeValues(values ...any) (string, error) + func ScriptContentInsideStringLiteral[T any](v T, errs ...error) (string, error) + func ScriptContentOutsideStringLiteral[T any](v T, errs ...error) (string, error) + func WriteString(w io.Writer, index int, s string) (err error) + type Buffer struct + Underlying io.Writer + func GetBuffer(w io.Writer) (b *Buffer, existing bool) + func (b *Buffer) Close() error + func (b *Buffer) Flush() error + func (b *Buffer) Reset(w io.Writer) + func (b *Buffer) Size() int + func (b *Buffer) Write(p []byte) (n int, err error) + func (b *Buffer) WriteString(s string) (n int, err error) + type GeneratedComponentInput struct + Context context.Context + Writer io.Writer + type StringLoader struct + func NewStringLoader(devModeWatchRootPath string) (sl *StringLoader) + func (sl *StringLoader) GetWatchedString(templFilePath string, index int, defaultValue string) (string, error)