Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.43 KB

File metadata and controls

30 lines (21 loc) · 1.43 KB

GenXdev.Coding.Templating

Overview

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.

What It Offers

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

How It All Comes Together

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.

See Also