![]() |
VOOZH | about |
dotnet add package Scriban.Signed --version 7.2.4
NuGet\Install-Package Scriban.Signed -Version 7.2.4
<PackageReference Include="Scriban.Signed" Version="7.2.4" />
<PackageVersion Include="Scriban.Signed" Version="7.2.4" />Directory.Packages.props
<PackageReference Include="Scriban.Signed" />Project file
paket add Scriban.Signed --version 7.2.4
#r "nuget: Scriban.Signed, 7.2.4"
#:package Scriban.Signed@7.2.4
#addin nuget:?package=Scriban.Signed&version=7.2.4Install as a Cake Addin
#tool nuget:?package=Scriban.Signed&version=7.2.4Install as a Cake Tool
<img align="right" width="160px" height="160px" src="img/scriban.png">
Scriban is a fast, powerful, safe and lightweight scripting language and engine for .NET, which was primarily developed for text templating with a compatibility mode for parsing liquid templates.
Today, not only Scriban can be used in text templating scenarios, but also can be integrated as a general scripting engine: For example, Scriban is at the core of the scripting engine for kalk, a command line calculator application for developers.
// Parse a scriban template
var template = Template.Parse("Hello {{name}}!");
var result = template.Render(new { Name = "World" }); // => "Hello World!"
Parse a Liquid template using the Liquid language:
// Parse a liquid template
var template = Template.ParseLiquid("Hello {{name}}!");
var result = template.Render(new { Name = "World" }); // => "Hello World!"
The language is very versatile, easy to read and use, similar to liquid templates:
var template = Template.Parse(@"
<ul id='products'>
{{ for product in products }}
<li>
<h2>{{ product.name }}</h2>
Price: {{ product.price }}
{{ product.description | string.truncate 15 }}
</li>
{{ end }}
</ul>
");
var result = template.Render(new { Products = this.ProductList });
Scriban can also be used in pure scripting context without templating ({{ and }}) and can help you to create your own small DSL.
By default, Properties and methods of .NET objects are automatically exposed with lowercase and _ names. It means that a property like MyMethodIsNice will be exposed as my_method_is_nice. This is the default convention, originally to match the behavior of liquid templates.
If you want to change this behavior, you need to use a MemberRenamer delegate
ScriptVisitor, parent links on ScriptNode, and round-trippable formatting with Template.ToText.?.), and conditional expressions.ScriptLang and ScriptMode, including Scriban, Liquid, and Scientific parsing.TemplateContext options such as relaxed member, function, target, and indexer access.object.eval and object.eval_template.Template.RenderAsync.Template.ToText, allowing to manipulate scripts in memory and re-save them to the disk, useful for roundtrip script update scenariosliquid by using the Template.ParseLiquid method
liquid language is less powerful than scriban, this mode allows to migrate from liquid to scriban language easilyliquid script to a scriban script using Template.ToText on a template parsed with Template.ParseLiquidasync/await evaluation of scripts (e.g Template.RenderAsync)if/else/for/while, expressions (x = 1 + 2), conditions... etc.myvar | string.capitalize)
func statement and allow function pointers/delegates via the alias @ directivex = {mymember: 1}) and arrays (e.g x = [1,2,3,4])wrap statementarray, date, html, math, object, regex, string, timespan{{...}}ScriptObject-based APIs produce zero linker warnings for Native AOT publishingYou can install the Scriban Extension for Visual Studio Code to get syntax coloring for scriban scripts (without HTML) and scriban html files.
The full documentation is available at https://scriban.github.io.
Scriban is available as a NuGet package: 👁 NuGet
dotnet add package Scriban
The package targets netstandard2.0 and net8.0, so it works with .NET 6+, .NET Framework 4.7.2+, and other compatible runtimes.
Also the Scriban.Signed NuGet package provides signed assemblies.
The package includes Scriban source files so that you can internalize Scriban into your project instead of consuming it only as a binary dependency. This is useful in environments where NuGet references are not convenient, such as Roslyn source generators.
Check the documentation here
This software is released under the BSD-Clause 2 license.
Supports this project with a monthly donation and help me continue improving it. [Become a sponsor]
<img src="https://github.com/lilith.png?size=200" width="64px;" style="border-radius: 50%" alt="lilith"/> Lilith River, author of Imageflow Server, an easy on-demand image editing, optimization, and delivery server
Adapted logo Puzzle by Andrew Doane from the Noun Project
Alexandre Mutel aka xoofx.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Scriban.Signed:
| Package | Downloads |
|---|---|
|
WireMock.Net.Minimal
Minimal version from the lightweight Http Mocking Server for .NET |
|
|
NTypewriter
File/code generator from Scriban text templates populated with Roslyn C# code model |
|
|
Axuno.TextTemplating
Text templating is used to dynamically render contents based on a template and a model. * It is based on the Scriban library, so it supports conditional logics, loops and much more. * Template content can be localized. * You can define layout templates to be used as the layout while rendering other templates. * You can pass arbitrary objects to the template context (beside the model) for advanced scenarios. The library is a modified version of the lightweight TextTemplating.Scriban part of Volo.Abp.TextTemplating 7.0 (i.e., exluding the more heavy TextTemplating.Razor). |
|
|
NTypewriter.Runtime
App-independent engine used to run NTypewriter from UI |
|
|
essentialMix.Template
Common extensions methods, helper classes, components, nano systems, common patterns, and caching |
Showing the top 7 popular GitHub repositories that depend on Scriban.Signed:
| Repository | Stars |
|---|---|
|
npgsql/npgsql
Npgsql is the .NET data provider for PostgreSQL.
|
|
|
ErsatzTV/legacy
Open-source platform that transforms your personal media library into live, custom TV channels.
|
|
|
wiremock/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended and different functionality. Full documentation can be found at https://wiremock.org/dotnet/.
|
|
|
microsoft/Oryx
Build your repo automatically.
|
|
|
LanguageDev/Yoakke
A collection of libraries for implementing compilers in .NET.
|
|
|
NeVeSpl/NTypewriter
File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
|
|
|
mrpmorris/Morris.Moxy
Moxy - Mixins code generator for C#
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.2.4 | 2,652 | 6/8/2026 |
| 7.2.3 | 4,198 | 5/30/2026 |
| 7.2.2 | 526 | 5/29/2026 |
| 7.2.1 | 4,189 | 5/24/2026 |
| 7.2.0 | 235,065 | 5/12/2026 |
| 7.1.0 | 16,136 | 4/8/2026 |
| 7.0.6 | 1,263,373 | 3/29/2026 |
| 7.0.5 | 7,864 | 3/26/2026 |
| 7.0.4 | 233 | 3/26/2026 |
| 7.0.3 | 920 | 3/23/2026 |
| 7.0.2 | 242 | 3/23/2026 |
| 7.0.1 | 231 | 3/23/2026 |
| 7.0.0 | 11,428 | 3/22/2026 |
| 6.6.0 | 5,955 | 3/19/2026 |
| 6.5.8 | 4,538 | 3/16/2026 |
| 6.5.7 | 3,169 | 3/11/2026 |
| 6.5.6 | 485 | 3/11/2026 |
| 6.5.5 | 1,236 | 3/5/2026 |
| 6.5.4 | 512 | 3/4/2026 |
| 6.5.3 | 7,385 | 2/18/2026 |