Skip to content

PolarbearDK/Miracle.Macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miracle.Macros

Expand macros in strings.

Sample usage:

var macroString = "Hello ${Location}";
Console.WriteLine(macroString.ExpandMacros(new { Location = "World"});

Macros has the form:

${Property}

Nested properties are supported:

${Property.SubProperty}
${Property.SubProperty.SubProperty2}
ect.

Composite formatting can be applied using:

${Property:format}
${Property.SubProperty:format}

About

Extendable macro expander

Resources

License

Stars

Watchers

Forks

Packages

No packages published