Ulito.Shablon 0.1.0

dotnet add package Ulito.Shablon --version 0.1.0
NuGet\Install-Package Ulito.Shablon -Version 0.1.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="Ulito.Shablon" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ulito.Shablon --version 0.1.0
#r "nuget: Ulito.Shablon, 0.1.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 Ulito.Shablon as a Cake Addin
#addin nuget:?package=Ulito.Shablon&version=0.1.0

// Install Ulito.Shablon as a Cake Tool
#tool nuget:?package=Ulito.Shablon&version=0.1.0

Shablon

Created by Tony Kenny. November 2017

Please make suggestions for new features and feel free to contribute!

Introduction

Makes the task of creating and using templates much easier by using simple tokens in a file and annotations on a model.

No need to create a separate method for each template type you use. Just create your template and model, then call invoke the processor to work its magic.

Supports complex data types & collections.

Usage

See example project.

Create a template with some tokens (place holders) Create a model with annotated public properties Invoke the processor, sending the template, model and the strings you use as the token start and end.

template = Shablon.TemplateProcessor.ProcessTemplate(template, orderModel, "[#", "#]");

ValueTypes

Add annotation to a value type and strings to define the placeholder for auto replacement

NameValueCollections

These are a special case and easy to use. Both the name and the value can be output in the template with the special reserved tokens "_Name" and "_Value"

Notes

Replacements are global, so be careful not to use the same place holder in a model that contains complex types. For example, don't use "Name" for a customer on an invoice template then also use "Name" on a product. They will all get replaced with the same data!

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has 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
0.1.0 5,652 11/13/2017

Beta 1