templating

package
v0.0.0-...-f4d26ab Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package templating aggregates individualization, token generation and detection, as well as variable-value detection behind a cohesive import.

Index

Constants

This section is empty.

Variables

BuildPattern builds a compiled regexp for token detection based on delimiters.

View Source
var CollectTokenNames = tokendetection.CollectTokenNames

CollectTokenNames scans content and returns global and per-file required tokens.

DetectInContent detects token occurrences in content.

View Source
var DetectVariableValues = variablevalue.Detect

DetectVariableValues scans content for values that originate from unselected variations.

FilterByIgnore filters out matches for ignored inner token names.

View Source
var FilterKnownCompositeTokens = tokendetection.FilterKnownCompositeTokens

FilterKnownCompositeTokens narrows unresolved matches composed from already known tokens.

IsEnabled resolves whether token warnings are enabled for a project.

View Source
var NewIndividualizerWithStandardManipulators = individualizer.NewIndividualizerWithStandardManipulators

NewIndividualizerWithStandardManipulators constructs a default individualizer.

View Source
var NewTokenGeneratorWithEngine = tokengen.NewTokenGeneratorWithEngine

NewTokenGeneratorWithEngine creates a token generator bound to a Lua engine.

View Source
var ResolveEffectiveDelimiters = tokengen.ResolveEffectiveDelimiters

ResolveEffectiveDelimiters resolves effective token delimiters for a project.

View Source
var ResolveEffectiveDelimitersForDistribution = tokengen.ResolveEffectiveDelimitersForDistribution

ResolveEffectiveDelimitersForDistribution resolves effective token delimiters for a project and distribution.

Functions

func VarMarkerRegex

func VarMarkerRegex(preIdentifier string) *regexp.Regexp

VarMarkerRegex returns a cached regex matching the variant markers (`<preIdentifier>Var<name>`) for the given preIdentifier. Compiling on first use and caching keeps repeated individualization runs cheap when the same preIdentifier appears across many files.

Types

type Findings

type Findings = tokendetection.Findings

Findings groups token matches by path.

type Match

type Match = tokendetection.Match

Match describes a single token match with a short preview.

type StandardManipulatorOptions

type StandardManipulatorOptions = individualizer.StandardManipulatorOptions

StandardManipulatorOptions configures the built-in individualizer manipulators.

type TokenBasedIndividualizer

type TokenBasedIndividualizer = individualizer.TokenBasedIndividualizer

TokenBasedIndividualizer performs token-based content individualization.

type TokenGenerator

type TokenGenerator = tokengen.TokenGenerator

TokenGenerator creates tokens from variation selections and Lua extensions.

type User

type User = individualizer.User

User identifies a single user in a user group context.

type UserGroup

type UserGroup = individualizer.UserGroup

UserGroup is the individualization context for a project.

type VariableFinding

type VariableFinding = variablevalue.Finding

VariableFinding describes an unexpected variable value occurrence.

type VariableOptions

type VariableOptions = variablevalue.Options

VariableOptions configures the variable-value detector.

Directories

Path Synopsis
Package detectionutil provides helpers for loading detection-related configuration used by variable/token detection logic.
Package detectionutil provides helpers for loading detection-related configuration used by variable/token detection logic.
Package hashartifact renders hash directives into raw and hashed artifacts.
Package hashartifact renders hash directives into raw and hashed artifacts.
Package individualizer provides a flexible token replacement and file manipulation system.
Package individualizer provides a flexible token replacement and file manipulation system.
Package solutiondeletion applies removal rules to filter solution content from repositories.
Package solutiondeletion applies removal rules to filter solution content from repositories.
Package tablehash renders hashed solution tables for work repositories.
Package tablehash renders hashed solution tables for work repositories.
Package targetprocessing wires built-in cross-target processors.
Package targetprocessing wires built-in cross-target processors.
Package targetprocessor defines processors that can transform multiple target repository contents together after normal per-target individualization.
Package targetprocessor defines processors that can transform multiple target repository contents together after normal per-target individualization.
Package tokendetection provides functionality to detect and collect tokens in source code.
Package tokendetection provides functionality to detect and collect tokens in source code.
transformers
Package transformers provides various string transformation functions used for generating individualization tokens from class names.
Package transformers provides various string transformation functions used for generating individualization tokens from class names.
Package variablevalue provides detection utilities for spotting values from non-selected variations within individualized content.
Package variablevalue provides detection utilities for spotting values from non-selected variations within individualized content.

Jump to

Keyboard shortcuts

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