Cottle 2.0.10
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Cottle --version 2.0.10
NuGet\Install-Package Cottle -Version 2.0.10
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="Cottle" Version="2.0.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cottle --version 2.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cottle, 2.0.10"
#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 Cottle as a Cake Addin #addin nuget:?package=Cottle&version=2.0.10 // Install Cottle as a Cake Tool #tool nuget:?package=Cottle&version=2.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cottle: Compact Object to Text Transform Language
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).
Sample
Hello, {name}!
{if len(messages) > 0:
You have {len(messages)} new message{if len(messages) > 1:s} in your mailbox!
|else:
You have no new message.
}
var document = Document.CreateDefault(template).DocumentOrThrow;
return document.Render(Context.CreateBuiltin(new Dictionary<Value, Value>
{
["messages"] = GetMessages(),
["name"] = "JC Denton"
}));
Resource
- Home page: https://r3c.github.io/cottle/
- Documentation: https://cottle.readthedocs.io/
- Benchmark: https://r3c.github.io/cottle/benchmark.html
- NuGet package: https://www.nuget.org/packages/Cottle
- License: license.md
Product | Versions 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 is compatible. 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. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cottle:
Package | Downloads |
---|---|
Softeq.NetKit.EmailService
Package Description |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on Cottle:
Repository | Stars |
---|---|
scriban/scriban
A fast, powerful, safe and lightweight scripting language and engine for .NET
|
|
Macro-Deck-App/Macro-Deck
Macro Deck transforms your phone, tablet, or any device equipped with a modern internet browser into an efficient remote macro pad. With this tool, you can execute single or multi-step actions seamlessly with just a single tap.
|
|
EDCD/EDDI
Companion application for Elite Dangerous
|
|
cmdrmcdonald/EliteDangerousDataProvider
|
|
dotnet/docker-tools
This is a repo to house some common tools for our various docker repos.
|
Version | Downloads | Last updated | |
---|---|---|---|
2.1.0 | 77,870 | 7/2/2024 | |
2.0.12 | 55,254 | 3/27/2024 | |
2.0.11 | 16,494 | 3/7/2024 | |
2.0.10 | 181,800 | 7/13/2023 | |
2.0.9 | 122,257 | 3/21/2023 | |
2.0.8 | 139,308 | 6/11/2022 | |
2.0.7 | 49,405 | 1/11/2022 | |
2.0.5 | 2,982 | 12/29/2021 | |
2.0.4 | 49,460 | 8/11/2021 | |
2.0.3 | 18,281 | 6/3/2021 | |
2.0.2 | 52,596 | 6/20/2020 | |
2.0.1 | 854 | 5/22/2020 | |
2.0.0 | 1,367 | 4/27/2020 | |
1.6.2 | 3,455 | 3/15/2020 | |
1.6.1 | 1,324 | 3/5/2020 | |
1.6.0 | 5,992 | 12/3/2019 | |
1.5.4 | 3,371 | 10/6/2019 | |
1.5.3 | 2,081 | 7/17/2019 | |
1.5.2 | 889 | 7/15/2019 | |
1.4.3 | 1,199 | 3/12/2019 | |
1.4.2 | 4,650 | 1/22/2019 | |
1.4.1 | 1,552 | 1/4/2019 | |
1.4.0 | 1,602 | 3/21/2017 | |
1.3.2 | 2,115 | 2/20/2016 | |
1.3.1 | 2,017 | 11/18/2014 | |
1.3.0 | 1,858 | 8/11/2014 | |
1.2.0 | 1,772 | 6/25/2014 | |
1.1.2 | 2,708 | 2/10/2014 | |
1.1.1 | 1,734 | 5/1/2013 | |
1.1.0 | 1,905 | 11/14/2012 | |
1.0.1 | 1,867 | 10/22/2012 |