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
JinjavaConfig config = JinjavaConfig.newBuilder().withFailOnUnknownTokens(true).build(); Jinjava jinjava = new Jinjava(config);
String[] templates = new String[]{
"{% if foo == 'bar' %}baz{% endif %}"
};
for (String template : templates) { System.out.println("Template: " + template); try { jinjava.render(template, new Context()); System.out.println("Works!\n"); } catch (FatalTemplateErrorsException e) { System.out.println("Doesn't work: " + e.getMessage() + "\n"); } }
It doesn't throw exception as foo is not defined in the context.
The text was updated successfully, but these errors were encountered:
Any update on this?
Sorry, something went wrong.
Thanks for pointing this out. There are no updates here, but feel free to open a PR to address the issue
sorry I didn’t get you. PR you mean pull request??
Yes, pull request
No branches or pull requests
JinjavaConfig config = JinjavaConfig.newBuilder().withFailOnUnknownTokens(true).build();
Jinjava jinjava = new Jinjava(config);
String[] templates = new String[]{
};
for (String template : templates) {
System.out.println("Template: " + template);
try {
jinjava.render(template, new Context());
System.out.println("Works!\n");
}
catch (FatalTemplateErrorsException e) {
System.out.println("Doesn't work: " + e.getMessage() + "\n");
}
}
It doesn't throw exception as foo is not defined in the context.
The text was updated successfully, but these errors were encountered: