handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

Fail validation if template is having Built-In Helpers / Custom Helpers / Partials

Open ygangrades opened this issue 3 years ago • 0 comments

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

ygangrades avatar Jun 30 '22 08:06 ygangrades