SmartFormat NET
NuGet SmartFormat.NET package re-bundled for convenient consumption and dependency management.
Last updated | 5 months ago |
Total downloads | 440 |
Total rating | 0 |
Categories | Tools Libraries Misc |
Dependency string | dotnet_lethal_company-SmartFormat_NET-3.5.0 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
dotnet_lethal_company-SmartFormat_Extensions_Newtonsoft_Json
NuGet SmartFormat.Extensions.Newtonsoft.Json package re-bundled for convenient consumption and dependency management.
Preferred version: 3.5.0dotnet_lethal_company-SmartFormat_Extensions_System_Text_Json
NuGet SmartFormat.Extensions.System.Text.Json package re-bundled for convenient consumption and dependency management.
Preferred version: 3.5.0dotnet_lethal_company-SmartFormat_Extensions_Time
NuGet SmartFormat.Extensions.Time package re-bundled for convenient consumption and dependency management.
Preferred version: 3.5.0dotnet_lethal_company-SmartFormat_Extensions_Xml
NuGet SmartFormat.Extensions.Xml package re-bundled for convenient consumption and dependency management.
Preferred version: 3.5.0dotnet_lethal_company-SmartFormat
NuGet SmartFormat package re-bundled for convenient consumption and dependency management.
Preferred version: 3.5.0README
What is SmartFormat?
SmartFormat is a lightweight text templating library written in C#.
It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. All formatting takes place at runtime.
SmartFormat uses extensions to provide named placeholders, localization, pluralization, gender conjugation, as well as list and time formatting. Formatting extensions can be nested.
Custom source or formatter extensions can be added easily using simple interfaces.
Features
- High performance with low memory footprint
- Minimal, intuitive syntax
- Formatting takes place exclusively at runtime
- Exact control of whitespace text output
string.Format
compatibility mode andSmart.Format
enhanced mode- Most common data sources work out-of-the-box
- Many built-in formatting extensions
- Custom formatting and source extensions are easy to integrate
- Comprehensive documentation: current Wiki, complete xmldoc
Note
Use .Net Standard 2.1 and later for best optimizations