Description
A lightweight templating library, with an emphasis on grammar.
SmartFormat.NET makes it easy for a data-driven template to have proper pluralization, gender conjugation, lists, and conditional language logic.
Nuget
Install-Package SmartFormat.NET
SmartFormat.NET alternatives and similar packages
Based on the "Template Engine" category.
Alternatively, view SmartFormat.NET alternatives based on common mentions on social networks and blogs.
-
RazorEngine
Open source templating engine based on Microsoft's Razor parsing engine -
scriban
A fast, powerful, safe and lightweight scripting language and engine for .NET -
RazorLight
Template engine based on Microsoft's Razor parsing engine for .NET Core -
DotLiquid
.NET Port of Tobias Lütke's Liquid template language. -
Fluid
Fluid is an open-source .NET template engine based on the Liquid template language. -
Mustache Sharp
An extension of the mustache text template engine for .NET. -
JNTemplate
jntemplate is an fast and lightweight html templating engine for C# .NET. -
MaltReport
A WYSIWYG document template engine to generates .odt/.ods/docx/xlsx/doc/xls documents for .NET -
Morestachio
Lightweight, powerful, flavorful, template engine.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SmartFormat.NET or a related project?
README
SmartFormat is a is a lightweight text templating library written in C# which can be a drop-in replacement for string.Format
. More than that SmartFormat can format data with named placeholders, lists, localization, pluralization and other smart extensions.
- 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 and SmartFormat 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
Supported Frameworks
- .Net Framework 4.6.1 and later
- .Net Standard 2.0
- .Net Standard 2.1 and later for best optimizations
Get started
Install the full NuGet package -or-
Install the core NuGet package
Have a look at the SmartFormat Wiki
See the [changelog](CHANGES.md) for changes.
License
SmartFormat is licensed under [The MIT License (MIT)](LICENSE.md)
The bundled project SmartFormat.ZString is Copyright © Cysharp, Inc. Their software
is licensed under [The MIT License (MIT)](src/SmartFormat.ZString/repo/LICENSE).
Their conversion methods under the ZString/Number
directory
is Copyright © .NET Foundation and Contributors und is licensed
under The MIT License (MIT).
Thanks!
We would like to thank JetBrains for supporting the project with free licenses of their fantastic tools.
*Note that all licence references and agreements mentioned in the SmartFormat.NET README section above
are relevant to that project's source code only.