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
With Jinja for python it is possible to use a native environment to render template into native objects. https://jinja.palletsprojects.com/en/3.1.x/nativetypes/
Is something similar possible with this library?
Jinjava jinjava = new Jinjava(); String template = "{{ value + 2 }}"; var result = jinjava.render(template, Map.of("value", 2)); System.out.println(result); // 4 System.out.println(result.getClass().getName()); // java.lang.Integer
Thank you very much. Feel free to close this issue without comment if such questions are not appreciated.
The text was updated successfully, but these errors were encountered:
You could do something similar using
JinjavaInterpreter interpreter = jinjava.newInterpreter(); interpreter.getContext().put("value", 2); interpreter.resolveELExpressionSilently("value + 2");
Sorry, something went wrong.
Thank you, it works 🎉
No branches or pull requests
With Jinja for python it is possible to use a native environment to render template into native objects.
https://jinja.palletsprojects.com/en/3.1.x/nativetypes/
Is something similar possible with this library?
Thank you very much. Feel free to close this issue without comment if such questions are not appreciated.
The text was updated successfully, but these errors were encountered: