You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am considering using Inja for a project because it's a very nice C++ templating tool. However, the project takes in user-generated content, which means a high possibility of invalid templates. This makes handling exceptions being thrown very cumbersome each time a user passing in an invalid template.
Would it be possible to create a method that validates the templates and returns even a simple boolean (where it failed would be ideal, but not necessary)? This way, I could validate the template before trying to parse and render it?
The text was updated successfully, but these errors were encountered:
I am considering using Inja for a project because it's a very nice C++ templating tool. However, the project takes in user-generated content, which means a high possibility of invalid templates. This makes handling exceptions being thrown very cumbersome each time a user passing in an invalid template.
Would it be possible to create a method that validates the templates and returns even a simple boolean (where it failed would be ideal, but not necessary)? This way, I could validate the template before trying to parse and render it?
The text was updated successfully, but these errors were encountered: