We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.2.692
Render DateOnly as string and it needs to be compatible with date filter
DateOnly
date
Got error Liquid syntax error: Object '30.11.2023' is invalid because it is neither a built-in type nor implements ILiquidizable
Liquid syntax error: Object '30.11.2023' is invalid because it is neither a built-in type nor implements ILiquidizable
var rendered = DotLiquid.Template .Parse("{{ MyDate }}") .Render(DotLiquid.Hash.FromAnonymousObject(new { MyDate = new DateOnly(2023, 11, 30), }), CultureInfo.GetCultureInfo("ru-RU")); Console.WriteLine(rendered);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dotliquid version
2.2.692
Expected behavior
Render
DateOnly
as string and it needs to be compatible withdate
filterActual behavior
Got error
Liquid syntax error: Object '30.11.2023' is invalid because it is neither a built-in type nor implements ILiquidizable
Steps to reproduce the Problem (you can add files)
The text was updated successfully, but these errors were encountered: