Skip to content

Commit

Permalink
Link to kalk for a usage of Scriban outside text templating.
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Sep 9, 2023
1 parent 7ae9232 commit c253343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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](https://github.com/xoofx/kalk), a command line calculator application for developers.

```C#
// Parse a scriban template
var template = Template.Parse("Hello {{name}}!");
Expand Down Expand Up @@ -61,6 +63,7 @@ Scriban can also be used in pure scripting context without templating (`{{` and

## Features

- An **extensible sandbox execution model**: You have the full control about which Scripting objects (and so properties and methods) are accessible from Scriban templates.
- Very **efficient**, **fast** parser and a **lightweight** runtime. CPU and Garbage Collector friendly.
- Powered by a Lexer/Parser providing a **full Abstract Syntax Tree, fast, versatile and robust**, more efficient than regex based parsers.
- Precise source code location (path, column and line) for error reporting
Expand Down

0 comments on commit c253343

Please sign in to comment.