StubbleOrg / Stubble

Trimmed down {{mustache}} templates in .NET
Other
399 stars 58 forks source link

Prevent dynamic objects from standard iteration of a section tag #141

Closed tibel closed 8 months ago

tibel commented 1 year ago

In the default configuration an ExpandoObject should not be iterated like a collection in a section tag.

builder-main commented 10 months ago

I just swapped all my forms of new { Prop = Something} to myExpando.Prop = Something and was observing issues, such as duplicate data, and templating trying to iterate instead of presence check, can confirm this fix on the Core. (Didn't try on compilation) Thanks @Tibel, this could probably be merged.