package
0.3.833
Repository: https://github.com/a-h/templ.git
Documentation: pkg.go.dev

# Functions

GeneratedTemplate is used to avoid generated code needing to import the `context` and `io` packages.
GetBuffer creates and returns a new buffer if the writer is not already a buffer, or returns the existing buffer if it is.
GetBuilder returns a strings.Builder.
ReleaseBuffer flushes the buffer and returns it to the pool.
SanitizeStyleAttributeValues renders a style attribute value.
WriteString writes the string to the writer.

# Variables

4KB.
TemplUnsupportedStyleAttributeValue is the default value returned for unsupported types.

# Structs

Buffer is a wrapper around bufio.Writer that enables flushing and closing of the underlying writer.
GeneratedComponentInput is used to avoid generated code needing to import the `context` and `io` packages.