Cottle 2.0.2
See the version list below for details.
dotnet add package Cottle --version 2.0.2
NuGet\Install-Package Cottle -Version 2.0.2
<PackageReference Include="Cottle" Version="2.0.2" />
paket add Cottle --version 2.0.2
#r "nuget: Cottle, 2.0.2"
// Install Cottle as a Cake Addin #addin nuget:?package=Cottle&version=2.0.2 // Install Cottle as a Cake Tool #tool nuget:?package=Cottle&version=2.0.2
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- No dependencies.
-
.NETStandard 2.0
- System.Collections (>= 4.3.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Cottle:
Package | Downloads |
---|---|
GenHTTP.Modules.Pages
Allows to generate and serve HTML pages |
|
Softeq.NetKit.EmailService
Package Description |
GitHub repositories (6)
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
|
|
Kaliumhexacyanoferrat/GenHTTP
Lightweight web server written in pure C# with few dependencies to 3rd-party libraries.
|
|
cmdrmcdonald/EliteDangerousDataProvider
|
Version | Downloads | Last updated | |
---|---|---|---|
2.1.0 | 87,457 | 7/2/2024 | |
2.0.12 | 55,707 | 3/27/2024 | |
2.0.11 | 16,525 | 3/7/2024 | |
2.0.10 | 182,256 | 7/13/2023 | |
2.0.9 | 122,955 | 3/21/2023 | |
2.0.8 | 139,834 | 6/11/2022 | |
2.0.7 | 49,424 | 1/11/2022 | |
2.0.5 | 2,989 | 12/29/2021 | |
2.0.4 | 49,473 | 8/11/2021 | |
2.0.3 | 18,286 | 6/3/2021 | |
2.0.2 | 52,917 | 6/20/2020 | |
2.0.1 | 859 | 5/22/2020 | |
2.0.0 | 1,370 | 4/27/2020 | |
1.6.2 | 3,460 | 3/15/2020 | |
1.6.1 | 1,329 | 3/5/2020 | |
1.6.0 | 5,997 | 12/3/2019 | |
1.5.4 | 3,376 | 10/6/2019 | |
1.5.3 | 2,086 | 7/17/2019 | |
1.5.2 | 894 | 7/15/2019 | |
1.4.3 | 1,204 | 3/12/2019 | |
1.4.2 | 4,657 | 1/22/2019 | |
1.4.1 | 1,557 | 1/4/2019 | |
1.4.0 | 1,609 | 3/21/2017 | |
1.3.2 | 2,120 | 2/20/2016 | |
1.3.1 | 2,023 | 11/18/2014 | |
1.3.0 | 1,863 | 8/11/2014 | |
1.2.0 | 1,777 | 6/25/2014 | |
1.1.2 | 2,713 | 2/10/2014 | |
1.1.1 | 1,739 | 5/1/2013 | |
1.1.0 | 1,910 | 11/14/2012 | |
1.0.1 | 1,872 | 10/22/2012 |