Build Status NuGet License


Cottle is an open-source (MIT) templating engine for C# .NET designed to be light, fast and extensible. 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!


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


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