Alexandre Mutel
Alexandre Mutel
`ConvertToModel` mostly works for e.g. primitive (string, int) custom type, but doesn't work for e.g. `TomlArray`/`TomlTable` custom type
> This was an issue I ran into while making a code generator. I didn't end up depending on this codepath, but thought it might still be useful to you...
Closing this issue, as I believe that it might have been fixed in the past months, but couldn't check (though I hit a similar issue). Haven't verified with the template...
You have to derive from `TemplateContext` and overrides the methods that fits what you are looking for. Evaluation and conversion to string is operated from there e.g: https://github.com/scriban/scriban/blob/42ad256ad1686d23fe72af6b88d68fe1e2cc6543/src/Scriban/TemplateContext.cs#L694-L702 This is...