template_processor

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugTemplateProcessorDecorator

type DebugTemplateProcessorDecorator struct {
	// contains filtered or unexported fields
}

DebugTemplateProcessorDecorator adds debug capabilities to template processing

func NewDebugTemplateProcessorDecorator

func NewDebugTemplateProcessorDecorator(
	wrapped generation.TemplateProcessingService,
	logger *logger.LoggerAdapter,
	concreteFileDir string,
	requestID string,
) *DebugTemplateProcessorDecorator

NewDebugTemplateProcessorDecorator creates a new debug decorator

func (*DebugTemplateProcessorDecorator) GetTemplateVariables

func (d *DebugTemplateProcessorDecorator) GetTemplateVariables(templatePath string) ([]string, error)

GetTemplateVariables delegates to wrapped service

func (*DebugTemplateProcessorDecorator) Process

func (d *DebugTemplateProcessorDecorator) Process(
	ctx context.Context,
	templatePath string,
	variables map[string]string,
) (string, error)

Process processes a template with variables and creates concrete files in debug mode

func (*DebugTemplateProcessorDecorator) ValidateTemplate

func (d *DebugTemplateProcessorDecorator) ValidateTemplate(templatePath string) error

ValidateTemplate delegates to wrapped service

type TemplateProcessorAdapter

type TemplateProcessorAdapter struct {
	// contains filtered or unexported fields
}

TemplateProcessorAdapter implements domain.TemplateProcessingService

func NewTemplateProcessorAdapter

func NewTemplateProcessorAdapter(cfg *config.Config, logger *logger.LoggerAdapter) *TemplateProcessorAdapter

NewTemplateProcessorAdapter creates a new template processor adapter

func (*TemplateProcessorAdapter) GetTemplateVariables

func (tpa *TemplateProcessorAdapter) GetTemplateVariables(templatePath string) ([]string, error)

GetTemplateVariables extracts variables from a template

func (*TemplateProcessorAdapter) Process

func (tpa *TemplateProcessorAdapter) Process(ctx context.Context, templatePath string, variables map[string]string) (string, error)

Process processes a template with variables

func (*TemplateProcessorAdapter) ValidateTemplate

func (tpa *TemplateProcessorAdapter) ValidateTemplate(templatePath string) error

ValidateTemplate validates a template file

Jump to

Keyboard shortcuts

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