-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Description
This problem was raised when writing a template and I misspell a filter. This could be an example:
{{ "abc" | uper }}
This is the code I'm executing:
std::string source = R"({{ "abc" | uper }})";
jinja2::Template tpl;
tpl.Load(source);
std::string result = tpl.RenderAsString(ValuesMap{}).value();
I expected to receive an error in the expected return value, but I received a value with an empty string "". In an online Jinja2 parser (I guess it is not using this library) I get this result:
Error:·template·rendering·failed.
no·filter·named·'uper'
So, is that empty string the expected behavior? Am I doing anything wrong?
Metadata
Metadata
Assignees
Labels
No labels