PebbleTemplates / pebble

Java Template Engine
https://pebbletemplates.io
BSD 3-Clause "New" or "Revised" License
1.09k stars 166 forks source link

Is there any way to get the unsatisfied variables / placeholder? #684

Open chingjustwe opened 4 weeks ago

chingjustwe commented 4 weeks ago

Question

In my situation, users make an API call to render a template, while providing the necessary parameters. There will be multiple templates, and the user will need to provide different parameters (a Map) for each template. If there are any variables in the template that are not satisfied, I would like to obtain the list and notify the user.

Is there any Pebble extension available for this purpose? Thank you.