yiisoft / app

Yii3 application template
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
236 stars 45 forks source link

Use Twig #99

Open samdark opened 4 years ago

samdark commented 4 years ago

We should try to implement Twig templates in the app.

Main benefit is that it provides output escaping out of the box so there will be way less Yii 3 apps with XSS. Another thing is that it's a good idea to try using Twig with widgets and classes we have.

kaznovac commented 2 years ago

consider plates instead of twig (performance seems considerably better than twig's according to this test http://www.phpbenchmarks.com/en/comparator/templating)

samdark commented 2 years ago

@kaznovac we have our own support for PHP templates so using plates with Yii3 doesn't make sense.