Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TemplateDir string // The main template directory to use
AdditionalSearchLocations []string // Additional directories to search for templates, templates/common is always added
Subsystem *subsystem.Subsystem
Debug bool
DebugGojaPort int // DAP debug port for goja JS runtime (0 = disabled)
WriteFileFunc WriteFileFunc
ReadFileFunc ReadFileFunc
FileTracker *filetracking.Tracker
Ignore *filetracking.Ignore
Comments *cms.CommentTracker
Targeter Targeter
Interopter Interopter
OutDir string
ImportConfig configuration.ImportConfig
WatchTemplatesLocation string
Bucketer *buckettypes.Bucketer
}
type Engine ¶
type Engine struct {
*easytemplate.Engine
}
type Interopter ¶
type Interopter interface {
ExecuteInterTemplateFunction(ctx context.Context, call easytemplate.CallContext, target types.Target, a *ast.AST, method string, args ...any) goja.Value
ExecuteInterTemplateTarget(ctx context.Context, target string, outDir string, a *ast.AST, cfg map[string]any, enabledFeatures map[string]bool) error
GetTargetDefaultTemplateConfig(ctx context.Context, target types.Target) (map[string]any, error)
}
type ReadFileFunc ¶
type WarningLogger ¶
Click to show internal directories.
Click to hide internal directories.