Skip to content
axunonb edited this page Feb 6, 2022 · 110 revisions

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.

SmartFormat uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.

Custom source or formatters extensions can be added easily using simple interfaces.

Example:

var data = new { Library = "SmartFormat"};
_ = Smart.Format("Composed with {Library}.", data);
// Result: "Composed with SmartFormat."
Clone this wiki locally