Home » Php » php – Barebones alternative to Twig, Smarty, Dwoo for implementing strings as templates (not files)

php – Barebones alternative to Twig, Smarty, Dwoo for implementing strings as templates (not files)

Posted by: admin February 25, 2020 Leave a comment

Questions:

I’ve been looking into dwoo, smarty, twig, and they all seem a little bit overkill if all I am wanting to do is convert templates as strings that account for IF statements and FOREACH loops using a special tokenized syntax. Most likely my templates will be user-managed and stored in a DB.

Is there something even smaller, and less powerful that I should be looking at?

I appreciate any/all direction 🙌

How to&Answers: