Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// TargetDirectory is where to place the resulting rendered files, must not exist
TargetDirectory string `yaml:"target"`
// SourceDirectory reads templates from a directory, mutually exclusive with Source
SourceDirectory string `yaml:"source_directory"`
// MergeTargetDirectory writes into existing target directories
MergeTargetDirectory bool `yaml:"merge_target_directory"`
// Source reads templates from in-process memory
Source map[string]any `yaml:"source"`
// Post configures post-processing of files using filepath globs
Post []map[string]string `yaml:"post"`
// SkipEmpty skips files that are 0 bytes after rendering
SkipEmpty bool `yaml:"skip_empty"`
// Sets a custom template delimiter, useful for generating templates from templates
CustomLeftDelimiter string `yaml:"left_delimiter"`
// Sets a custom template delimiter, useful for generating templates from templates
CustomRightDelimiter string `yaml:"right_delimiter"`
}
Config configures a scaffolding operation
type Scaffold ¶
type Scaffold struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.