kentaasvang.TemplatingEngine 1.0.0

There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="kentaasvang.TemplatingEngine" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add kentaasvang.TemplatingEngine --version 1.0.0                
#r "nuget: kentaasvang.TemplatingEngine, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.0.3 511 7/30/2022
1.0.2 476 7/30/2022
1.0.1 468 7/30/2022
1.0.0 466 7/27/2022

first implementation