I
I
IDDH2016-09-02 14:30:40
PHP
IDDH, 2016-09-02 14:30:40

PHP templating engine for user input that doesn't throw exceptions on invalid syntax?

Good afternoon!
Need a template engine for user input that doesn't throw exceptions on invalid syntax?
Those. if it encounters an invalid {{for}}, for example, without the last parenthesis:
{{for items as item}}
{{/for}
then it will skip it and will not throw an error.
The goal is to make emails editable with a WYSIWYG editor, i.e. there will be some kind of variable pool for the letter, which is thrown into the template, with the help of the template engine it should be processed without exceptions.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question