handlebars.java
handlebars.java copied to clipboard
Fail validation if template is having Built-In Helpers / Custom Helpers / Partials
Hi team, Is it possible to fail the validation using handlebars functions if the template is having Built-In Helpers / Custom Helpers / Partials?
I don't want the user to pass any conditional statements such as if-else for loop or helpers except Simple expressions, only simple expressions we wanted to allow.
Is there any function or something which we can use to fail the validation if the user passes any Built-In Helpers / Custom Helpers / Partials?
We are using the java package of handlebars https://www.javadoc.io/doc/com.github.jknack/handlebars/latest/com/github/jknack/handlebars/Handlebars.html