app icon indicating copy to clipboard operation
app copied to clipboard

Use Twig

Open samdark opened this issue 3 years ago • 2 comments

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.

samdark avatar Nov 30 '20 11:11 samdark

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

kaznovac avatar Feb 12 '22 19:02 kaznovac

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

samdark avatar Feb 12 '22 21:02 samdark