Skip to content

Commit

Permalink
Use .html.twig in code example instead of .html
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 18, 2024
1 parent 834a5a1 commit c13ca48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/TokenParser/FromTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Imports macros.
*
* {% from 'forms.html' import forms %}
* {% from 'forms.html.twig' import forms %}
*
* @internal
*/
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser/ImportTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Imports macros.
*
* {% import 'forms.html' as forms %}
* {% import 'forms.html.twig' as forms %}
*
* @internal
*/
Expand Down
4 changes: 2 additions & 2 deletions src/TokenParser/IncludeTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
/**
* Includes a template.
*
* {% include 'header.html' %}
* {% include 'header.html.twig' %}
* Body
* {% include 'footer.html' %}
* {% include 'footer.html.twig' %}
*
* @internal
*/
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser/SandboxTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* 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
Expand Down

0 comments on commit c13ca48

Please sign in to comment.