Use .html.twig in code example instead of .html

This commit is contained in:
Fabien Potencier
2024-12-18 11:13:19 +01:00
parent 834a5a1e5a
commit c13ca48ca5
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ use Twig\Token;
/**
* Imports macros.
*
* {% from 'forms.html' import forms %}
* {% from 'forms.html.twig' import forms %}
*
* @internal
*/
+1 -1
View File
@@ -20,7 +20,7 @@ use Twig\Token;
/**
* Imports macros.
*
* {% import 'forms.html' as forms %}
* {% import 'forms.html.twig' as forms %}
*
* @internal
*/
+2 -2
View File
@@ -19,9 +19,9 @@ use Twig\Token;
/**
* Includes a template.
*
* {% include 'header.html' %}
* {% include 'header.html.twig' %}
* Body
* {% include 'footer.html' %}
* {% include 'footer.html.twig' %}
*
* @internal
*/
+1 -1
View File
@@ -22,7 +22,7 @@ use Twig\Token;
* Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.
*
* {% sandbox %}
* {% include 'user.html' %}
* {% include 'user.html.twig' %}
* {% endsandbox %}
*
* @see https://twig.symfony.com/doc/api.html#sandbox-extension for details