You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #8608 Add Best Practice guideline for partials/include (timonf, weaverryan)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes#8608).
Discussion
----------
Add Best Practice guideline for partials/include
Hi there,
I was wondering if there is no Best Practice guide for partials/includes. So I would recommend to use a single prefixed underscore to determine such partials easily like in the Symfony demo application: https://github.com/symfony/demo/tree/master/templates/blog
I saw often other solutions like `@SomeBundle:Partials/post_form.html.twig`. But I like the approach from the Symfony demo application, so it should be a Best Practice guideline :)
Regards,
Timon
Commits
-------
bbd705d Added Best Practice guideline for partials/include
0 commit comments