scriban / scriban

A fast, powerful, safe and lightweight scripting language and engine for .NET
BSD 2-Clause "Simplified" License
3.01k stars 343 forks source link

Add support for generic IDictionary<_, _> #15

Closed xoofx closed 7 years ago

xoofx commented 7 years ago

Currently, the DictionaryAccessor used at runtime to work on dictionary only works with non generic IDictionary but we need to support dictionary that supports at least IDictionary<object, object> (or any IDictionary<string, _>) so that typically aJObject` of JSON.NET would be able to be used from scriban.

Related issue is #11 where tbr from the for tbr in tb is typically a JObject (inheriting from IDictionary<string, _>)

xoofx commented 7 years ago

Fixed by commit db513b2. Part of 0.2.2