GenXdev.Coding.Templating provides string templating utilities for code generation and text formatting. It formats collections of objects against a template string with property placeholders, and cleans up double empty lines in generated code.
| Command | Aliases | What it does |
|---|---|---|
| Add-ArrayTemplate | FormatArray |
Format a collection of objects using {PropertyName} placeholders |
| Remove-DoubleEmptyLines | — | Remove consecutive empty lines from code strings |
Add-ArrayTemplate (FormatArray) takes a collection of objects and a
template string with {PropertyName} or {PropertyName:format}
placeholders, producing a single formatted string from the entire collection.
Remove-DoubleEmptyLines collapses consecutive blank lines in a string
into single empty lines, with optional reformatting.
- GenXdev.Coding — Refactoring and README management
- GenXdev.Coding.PowerShell.Modules — Documentation generation (uses templating)
- Full Cmdlet Reference