Cottle 2.0.2

High performance, light & extensible template engine library for .NET 4.7.2 and above.

Install-Package Cottle -Version 2.0.2
dotnet add package Cottle --version 2.0.2
<PackageReference Include="Cottle" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cottle --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Overview

Cottle is an open-source (MIT) templating engine for C# .NET designed to be
light (no external dependency & simple API), fast (see
benchmark) and extensible (see
advanced features).
Cottle language and C# API look like this:

{library} is a great library to {["discover", "learn", "use"][rand(0, 3)]}!
var document = Document.CreateDefault(template).DocumentOrThrow;

return document.Render(Context.CreateBuiltin(new Dictionary<Value, Value>
{
    ["library"] = "Cottle"
}));
Cottle is a great library to learn!

Getting started

User documentation is available at Read the
Docs and explains how to use the library with many code snippets and examples.

Performance benchmark against similar libraries shows how
Cottle performs compared to other equivalent template engines.

License

This project is open-source, released under MIT licence. See
license page for
details.

Overview

Cottle is an open-source (MIT) templating engine for C# .NET designed to be
light (no external dependency & simple API), fast (see
benchmark) and extensible (see
advanced features).
Cottle language and C# API look like this:

{library} is a great library to {["discover", "learn", "use"][rand(0, 3)]}!
var document = Document.CreateDefault(template).DocumentOrThrow;

return document.Render(Context.CreateBuiltin(new Dictionary<Value, Value>
{
    ["library"] = "Cottle"
}));
Cottle is a great library to learn!

Getting started

User documentation is available at Read the
Docs and explains how to use the library with many code snippets and examples.

Performance benchmark against similar libraries shows how
Cottle performs compared to other equivalent template engines.

License

This project is open-source, released under MIT licence. See
license page for
details.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on Cottle:

Repository Stars
lunet-io/scriban
A fast, powerful, safe and lightweight text templating language and engine for .NET
EDCD/EDDI
Companion application for Elite Dangerous
cmdrmcdonald/EliteDangerousDataProvider

Version History

Version Downloads Last updated
2.0.2 155 6/20/2020
2.0.1 230 5/22/2020
2.0.0 774 4/27/2020
1.6.2 2,834 3/15/2020
1.6.1 743 3/5/2020
1.6.0 5,451 12/3/2019
1.5.4 2,698 10/6/2019
1.5.3 1,499 7/17/2019
1.5.2 329 7/15/2019
1.4.3 623 3/12/2019
1.4.2 3,871 1/22/2019
1.4.1 407 1/4/2019
1.4.0 609 3/21/2017
1.3.2 1,313 2/20/2016
1.3.1 1,192 11/18/2014
1.3.0 1,082 8/11/2014
1.2.0 944 6/25/2014
1.1.2 1,300 2/10/2014
1.1.1 908 5/1/2013
1.1.0 923 11/14/2012
1.0.1 941 10/22/2012