We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a364651 commit bbd705dCopy full SHA for bbd705d
best_practices/templates.rst
@@ -53,6 +53,15 @@ scattered through lots of bundles.
53
54
Use lowercased snake_case for directory and template names.
55
56
+.. best-practice::
57
+
58
+ Use a prefixed underscore for partial templates in template names.
59
60
+You often want to reuse template code using the ``include`` function to avoid
61
+redundant code. To determine those partials easily in the filesystem you should
62
+prefix partials and any other template without HTML body or ``extends`` tag
63
+with a single underscore.
64
65
Twig Extensions
66
---------------
67
0 commit comments