You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And i have custom template, that have this section to render by scriban: "{{ $"{resource "ru-RU" $"General.{string.capitalize require_for_auto_test}"}" }}"
require_for_auto_test is a boolean variable, that comes as incoming arguments
When I try to render template with this code snippet
And renderResult return not null or some other value from Resource function. Instead, renderResult returns "True". While debugging my c# code i discovered that scriban called imported function Resource without attempting to interpolate second argument (string key) of function (In C# debugger i see just "General."). After Resource function returned null, RenderAsync returns just "True" (or "False" - depends on value of require_for_auto_test variable) instead of "null". It's looks like scriban print result of string interpolation $"General.{string.capitalize require_for_auto_test}".
Expected behavior: at first, scriban interpolate string $"General.{string.capitalize require_for_auto_test}" and then calls function $"{resource "ru-RU" "General.True"}"
Current version of scriban library: 5.10.0
The text was updated successfully, but these errors were encountered:
I have declared .net function
And i have custom template, that have this section to render by scriban:
"{{ $"{resource "ru-RU" $"General.{string.capitalize require_for_auto_test}"}" }}"
require_for_auto_test
is a boolean variable, that comes as incoming argumentsWhen I try to render template with this code snippet
And
renderResult
return notnull
or some other value fromResource
function. Instead,renderResult
returns "True". While debugging my c# code i discovered that scriban called imported functionResource
without attempting to interpolate second argument (string key
) of function (In C# debugger i see just "General."). AfterResource
function returnednull
,RenderAsync
returns just "True" (or "False" - depends on value ofrequire_for_auto_test
variable) instead of "null". It's looks like scriban print result of string interpolation$"General.{string.capitalize require_for_auto_test}"
.Expected behavior: at first, scriban interpolate string
$"General.{string.capitalize require_for_auto_test}"
and then calls function$"{resource "ru-RU" "General.True"}"
Current version of scriban library: 5.10.0
The text was updated successfully, but these errors were encountered: