Documentation
¶
Overview ¶
Package processor wraps a Syringe for easier integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct { AllowAliases bool // When true, allow short function names ("map") as aliases (for "".Gtpl.Map") LeftDelimiter string // When "", defaults to "{{" RightDelimter string // When "", defaults to "}}" RemoveEmptyLines bool // When true, remove empty lines from the output ListTemplate bool // When true, list template with line numbers before processing Logger syringe.Logger // When nil, defaults to https://pkg.go.dev/log }
Opts control how the processor works.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor is the receiver.
func (*Processor) Overview ¶
Builtins returns the "usage" information of the builtin functions, just as syringe.Overview does. This is just a pass-through.
func (*Processor) ProcessFiles ¶
ProcessFiles reads templates from files. The output goes to an io.Writer.
Click to show internal directories.
Click to hide internal directories.