Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderTemplateTree ¶
func RenderTemplateTree(ctx *gencontext.GenContext, model interface{}, params RenderParams) error
Types ¶
type LayoutStep ¶
type LayoutStep struct {
}
func NewLayoutStep ¶
func NewLayoutStep() LayoutStep
func (LayoutStep) Execute ¶
func (s LayoutStep) Execute(ctx *gencontext.GenContext) (core.StepResult, error)
func (LayoutStep) Name ¶
func (s LayoutStep) Name() string
type PathTransformerFunc ¶
type RenderParams ¶
type RenderParams struct {
// Path to directory with templates tree
TemplatesPath string
// Path to save result
TargetPath string
// Allows to overwrite the path of file or directory before moving result to target directory
PathTransformer PathTransformerFunc
FuncMap template.FuncMap
}
Click to show internal directories.
Click to hide internal directories.