signumsoftware / framework

Open Source framework for writing data-centric applications using the latest versions of .Net Core, C# (not-nullable), ASP.NET Web API, Typescript (strict), React, D3 and Sql Server or PostgreeSQL
https://www.signumsoftware.com/en/Framework
MIT License
221 stars 84 forks source link

fix Templating when reference foreach $variable itself #616

Closed RezaNosratabad closed 1 year ago

RezaNosratabad commented 1 year ago

fix Templating when reference foreach $variable itself (not its field or property chain)

Before this fix, in template script, inside a foreach that is based on a list from model —@foreach[m:---] instead of @foreach[Entity.---] :

this was working: @[$product.Name] but this one won't: raw[m:ModelMethod($product)]