PosInformatique.Foundations.Text.Templating 1.0.0

Prefix Reserved
dotnet add package PosInformatique.Foundations.Text.Templating --version 1.0.0
                    
NuGet\Install-Package PosInformatique.Foundations.Text.Templating -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="PosInformatique.Foundations.Text.Templating" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PosInformatique.Foundations.Text.Templating" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="PosInformatique.Foundations.Text.Templating" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PosInformatique.Foundations.Text.Templating --version 1.0.0
                    
#r "nuget: PosInformatique.Foundations.Text.Templating, 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.
#:package PosInformatique.Foundations.Text.Templating@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PosInformatique.Foundations.Text.Templating&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=PosInformatique.Foundations.Text.Templating&version=1.0.0
                    
Install as a Cake Tool

PosInformatique.Foundations.Text.Templating

NuGet version NuGet downloads

Introduction

This package provides a small abstraction to generate text from templates, independently of the underlying templating engine.

It defines the TextTemplate<TModel> base class and the ITextTemplateRenderContext interface, which can be implemented by concrete template engines.

Currently only the following text engine implementation are provided in PosInformatique.Foundations:

Install

You can install the package from NuGet:

dotnet add package PosInformatique.Foundations.Text.Templating

Features

  • Abstraction to represent a text template with a strongly-typed model: TextTemplate<TModel>
  • Asynchronous rendering API through RenderAsync
  • Pluggable rendering context via ITextTemplateRenderContext to access services during template execution
  • Engine-agnostic design: can be used with different template engines (Razor, etc.)

Usage

This package only provides the abstraction (base classes and interfaces). To actually render templates using Razor components, use one of the dedicated implementation package:

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on PosInformatique.Foundations.Text.Templating:

Package Downloads
PosInformatique.Foundations.Emailing

Provides a lightweight, template-based emailing infrastructure for .NET. Allows registering strongly-typed email templates, instantiating emails from models, and sending them through pluggable providers (e.g. Azure Communication Service).

PosInformatique.Foundations.Text.Templating.Razor

Provides Razor-based text templating using Blazor components. Allows generating text from Razor components with a strongly-typed Model parameter and full integration with the application's dependency injection (IServiceProvider).

PosInformatique.Foundations.Text.Templating.Scriban

Provides Scriban-based text templating with mustache-style syntax. Allows generating text from Scriban templates with a strongly-typed Model and automatic property exposure using simple {{ }} syntax.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 76 11/19/2025
1.0.0-rc.4 40 11/19/2025
1.0.0-rc.3 44 11/18/2025
1.0.0-rc.2 37 11/18/2025
1.0.0-rc.1 42 11/18/2025

1.0.0
 - Initial release with base text templating infrastructure.