8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@7ae3cb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ae3cb6

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: add html extension to snake_case recommendation examples
2 parents 71b3d30 + c732edf commit 7ae3cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ Template Naming
118118

119119
Symfony recommends the following for template names:
120120

121-
* Use `snake case`_ for filenames and directories (e.g. ``blog_posts.twig``,
122-
``admin/default_theme/blog/index.twig``, etc.);
121+
* Use `snake case`_ for filenames and directories (e.g. ``blog_posts.html.twig``,
122+
``admin/default_theme/blog/index.html.twig``, etc.);
123123
* Define two extensions for filenames (e.g. ``index.html.twig`` or
124124
``blog_posts.xml.twig``) being the first extension (``html``, ``xml``, etc.)
125125
the final format that the template will generate.

0 commit comments

Comments
 (0)
0