What is SmartFormat?
mainSmartFormat is a lightweight C# text templating library designed to format various data sources into strings using a minimal, intuitive syntax. It is highly compatible with string.Format but offers an enhanced mode called Smart.Format.
Key characteristics include:
- Runtime Formatting: All formatting occurs at runtime.
- Extensibility: Uses extensions for named placeholders, localization, pluralization, gender conjugation, list formatting, and time formatting. Extensions can be nested.
- Customization: Developers can easily implement custom source or formatter extensions via simple interfaces.
- Control: Provides exact control over whitespace in text output.