Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectTypes ¶
func ProjectTypes() []string
ProjectTypes returns the available project types for the Init() function
Types ¶
type Breadcrumb ¶ added in v1.0.0
Breadcrumb represents a single breadcrumb with its name and path
type Engine ¶
type Engine struct {
InputDir string
OutputDir string
TemingoignorePath string
TemplateExtension string
MetaTemplateExtension string
PartialExtension string
MetaFilename string
MarkdownContentFilename string
Values map[string]string
ValuesFilePaths []string
NoDeleteOutputDir bool
Verbose bool
DryRun bool
Beautify bool
Minify bool
Logger *slog.Logger
}
func DefaultEngine ¶
func DefaultEngine() Engine
DefaultEngine returns an engine with default values
func (*Engine) InitProject ¶
Initializes the current directory with an example project It checks beforehand if the files / folders that will be written already exist and not do a thing if they do.
Source Files
¶
- Engine.go
- Init.go
- ProjectTypes.go
- Render.go
- beautify.go
- ensureOutputDirectory.go
- generateMetaObjectForTemplatePath.go
- getAbsolutePathsAndRelativePath.go
- getExampleProjectFiles.go
- getMetaForTemplatePath.go
- minify.go
- renderTemplate.go
- sortPaths.go
- test_helpers.go
- tmpl_capitalize.go
- tmpl_concat.go
- tmpl_indent.go
- validateDirectories.go
- variables.go
- verifyPartials.go
Click to show internal directories.
Click to hide internal directories.