templates

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MPL-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessTemplate added in v0.0.6

func ProcessTemplate(options, rootOpts *options.BoilerplateOptions, thisDep variables.Dependency) error

Process the boilerplate template specified in the given options and use the existing variables. This function will download remote templates to a temporary working directory, which is cleaned up at the end of the function. This function will load any missing variables (either from command line options or by prompting the user), execute all the dependent boilerplate templates, and then execute this template. Note that we pass in rootOptions so that template dependencies can inspect properties of the root template.

Types

type ProcessedEngine added in v0.3.5

type ProcessedEngine struct {
	// List of paths relative to template folder that should be skipped
	EvaluatedPaths []string

	// The template engine to use.
	TemplateEngine variables.TemplateEngineType
}

type ProcessedSkipFile added in v0.3.4

type ProcessedSkipFile struct {
	// List of paths relative to template folder that should be skipped
	EvaluatedPaths []string

	// List of paths relative to template folder that should not be skipped
	EvaluatedNotPaths []string

	// Whether or not to skip the files if the paths match. This is the boilerplate rendered value of the if attribute
	// of a given skip file.
	RenderedSkipIf bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL