8000 Merge branch '5.1' into 5.x · symfony/symfony-docs@ef1b95a · GitHub
[go: up one dir, main page]

Skip to content

Commit ef1b95a

Browse files
committed
Merge branch '5.1' into 5.x
* 5.1: add html extension to snake_case recommendation examples
2 parents 58c8d36 + 7ae3cb6 commit ef1b95a

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