Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Twig #99

Open
samdark opened this issue Nov 30, 2020 · 2 comments
Open

Use Twig #99

samdark opened this issue Nov 30, 2020 · 2 comments
Assignees
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@samdark
Copy link
Member

samdark commented Nov 30, 2020

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 samdark added status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement labels Nov 30, 2020
@rustamwin rustamwin self-assigned this Jul 22, 2021
@kaznovac
Copy link

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

@samdark
Copy link
Member Author

samdark commented Feb 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants