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
<PackageReference Include="PosInformatique.Foundations.Text.Templating" Version="1.0.0" />
<PackageVersion Include="PosInformatique.Foundations.Text.Templating" Version="1.0.0" />
<PackageReference Include="PosInformatique.Foundations.Text.Templating" />
paket add PosInformatique.Foundations.Text.Templating --version 1.0.0
#r "nuget: PosInformatique.Foundations.Text.Templating, 1.0.0"
#:package PosInformatique.Foundations.Text.Templating@1.0.0
#addin nuget:?package=PosInformatique.Foundations.Text.Templating&version=1.0.0
#tool nuget:?package=PosInformatique.Foundations.Text.Templating&version=1.0.0
PosInformatique.Foundations.Text.Templating
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:
- PosInformatique.Foundations.Text.Templating.Razor
- PosInformatique.Foundations.Text.Templating.Scriban
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
ITextTemplateRenderContextto 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:
- PosInformatique.Foundations.Text.Templating.Razor
- PosInformatique.Foundations.Text.Templating.Scriban
Links
| Product | Versions 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. |
-
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.