StringTemplates 10.1.0
Prefix Reserveddotnet add package StringTemplates --version 10.1.0
NuGet\Install-Package StringTemplates -Version 10.1.0
<PackageReference Include="StringTemplates" Version="10.1.0" />
<PackageVersion Include="StringTemplates" Version="10.1.0" />
<PackageReference Include="StringTemplates" />
paket add StringTemplates --version 10.1.0
#r "nuget: StringTemplates, 10.1.0"
#:package StringTemplates@10.1.0
#addin nuget:?package=StringTemplates&version=10.1.0
#tool nuget:?package=StringTemplates&version=10.1.0
StringTemplates.Net
The best way to handle templates and replace placeholders.
NuGet Packages
| StringTemplates Package | NuGet |
|---|---|
| StringTemplates | |
| StringTemplates.Configuration | |
| StringTemplates.MailKit |
Documentation
You can read the documentation for StringTemplates on GitHub wiki.
Examples and sample project
A minimal API utilizing StringTemplates is included in the project files as an example.
Disclaimer
This project was generated using Stratis-Dermanoutsos/dotnet-empty-solution.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
NuGet packages (2)
Showing the top 2 NuGet packages that depend on StringTemplates:
| Package | Downloads |
|---|---|
|
StringTemplates.Configuration
The best way to handle templates and replace placeholders using IConfiguration. |
|
|
StringTemplates.MailKit
The best way to handle templates and replace placeholders inside of MailKit's messages. |
GitHub repositories
This package is not used by any popular GitHub repositories.
* Decoupled "ITemplatePlugin" from "ITemplateService". Plugins now own their "PlaceholderTag", regex and "GetValueOrDefault" lookup.
* Simplified "ITemplateService" to a single "ReplacePlaceholders(string?, params object?[])" entry point that dispatches to every registered plugin, including typed "ITemplatePlugin<TInput>" plugins matched by each input's runtime type.
* Removed "CompositeTemplateService" in favor of the new DI-driven "TemplateService" with cached typed-plugin lookups.
* Added "PluginOptions.AddPluginsFrom(params Assembly[])" for assembly-scan plugin registration.