[NuGet]:Scriban

This is a Nuget that I use in almost every .NET Core project to get the error details ( 500)

Link: https://www.nuget.org/packages/Scriban/

Site: https://github.com/scriban/scriban

What it does:  Like Razor –  a template intepreter

Usage:

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 });

Posted

in

,

by

Tags:

Comments

2 responses to “[NuGet]:Scriban”

  1. Ovi Avatar
    Ovi

    Seems like Moustache (StubbleOrg nuget)
    Any differences?

    1. Andrei Ignat Avatar
      Andrei Ignat

      I wish I knew…

Leave a Reply

Your email address will not be published. Required fields are marked *