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 });
Leave a Reply