Scriban is a fast, powerful and lightweight text templating language and engine for .NET
var template = Template.Parse("Hello {{name}}!")
template.Render(new { name = "foo" }); // => "hi foo!"
Scriban is similar to liquid or handlebars but provides additional support for:
- Full featured language including expressions, functions as objects (with support for pipes)
- Multi-line statements without having to embrace each line by
{{...}}
- Declare and directly use custom functions via the
func
statement. - Javascript/json like objects
x = {mymember: 1}
and arraysx = [1,2,3,4]
- See the Language for a description of the language syntax and the built-in functions
- See the Runtime for the a description of the runtime API.
Compatible with the following .NET framework profiles:
NET46
UWP 10
CoreCLR
This software is released under the BSD-Clause 2 license.
- dotliquid: .NET port of the liquid templating engine by @tgjones
- Handlebars.Net: .NET port of handlebars.js by @rexm
Alexandre Mutel aka xoofx.