mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 13:07:22 +00:00
Use .html.twig in code example instead of .html
This commit is contained in:
@@ -21,7 +21,7 @@ use Twig\Token;
|
||||
/**
|
||||
* Imports macros.
|
||||
*
|
||||
* {% from 'forms.html' import forms %}
|
||||
* {% from 'forms.html.twig' import forms %}
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ use Twig\Token;
|
||||
/**
|
||||
* Imports macros.
|
||||
*
|
||||
* {% import 'forms.html' as forms %}
|
||||
* {% import 'forms.html.twig' as forms %}
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user