kentaasvang.TemplatingEngine
1.0.0
See the version list below for details.
dotnet add package kentaasvang.TemplatingEngine --version 1.0.0
NuGet\Install-Package kentaasvang.TemplatingEngine -Version 1.0.0
<PackageReference Include="kentaasvang.TemplatingEngine" Version="1.0.0" />
paket add kentaasvang.TemplatingEngine --version 1.0.0
#r "nuget: kentaasvang.TemplatingEngine, 1.0.0"
// Install kentaasvang.TemplatingEngine as a Cake Addin #addin nuget:?package=kentaasvang.TemplatingEngine&version=1.0.0 // Install kentaasvang.TemplatingEngine as a Cake Tool #tool nuget:?package=kentaasvang.TemplatingEngine&version=1.0.0
🆕 TemplatingEngine
❓ What is My Project?
A toy implementation of a naive text templating engine
I needed a simple template engine and thought this was a suitable project to learn some nuget-package maintenance and tooling. This project will probably grow over time, but it's implementation with regards to efficiency and memory-usage will be dependent on my personal need - or if I feel I wanna satisfy my curiosity and dive into optimization.
⚡ Simple Example
TemplateEngine templateEngine = new();
string template = "I love [color] [vegetable] in the [tod]";
Dictionary<string, string> keyVals = new()
{
{"color": "red"},
{"vegetable": "potatoes"},
{"tod": "morning"}
};
template.LoadTemplate(template);
var result = template.Replace(keyVals);
Console.WriteLine(result);
// "I love red potatoes in the morning"
🤝 Collaborate with My Project
If you have nothing better to do, sure. Fork → checkout new branch → commit changes → PR
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
first implementation