-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
96 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
https://twig.symfony.com/doc/3.x/filters/trim.html | ||
\Twig\Extension\CoreExtension::trim | ||
{% assert_type ' I like Twig. '|trim "string" %} | ||
{% assert_type ' I like Twig.'|trim('.') "string" %} | ||
{% assert_type ' I like Twig. '|trim(side: 'left') "string" %} | ||
{% assert_type ' I like Twig. '|trim(' ', 'right') "string" %} | ||
{% assert_type ' I like Twig. ' | trim 'string' %} | ||
{% assert_type ' I like Twig.' | trim('.') 'string' %} | ||
{% assert_type ' I like Twig. ' | trim(side: 'left') 'string' %} | ||
{% assert_type ' I like Twig. ' | trim(' ', 'right') 'string' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
https://twig.symfony.com/doc/3.x/filters/trim.html | ||
\Twig\Extension\CoreExtension::trim | ||
{% assert_type ' I like Twig. '|trim "string|Stringable" %} | ||
{% assert_type ' I like Twig.'|trim('.') "string|Stringable" %} | ||
{% assert_type ' I like Twig. '|trim(side: 'left') "string|Stringable" %} | ||
{% assert_type ' I like Twig. '|trim(' ', 'right') "string|Stringable" %} | ||
{% assert_type ' I like Twig. ' | trim 'string|Stringable' %} | ||
{% assert_type ' I like Twig.' | trim('.') 'string|Stringable' %} | ||
{% assert_type ' I like Twig. ' | trim(side: 'left') 'string|Stringable' %} | ||
{% assert_type ' I like Twig. ' | trim(' ', 'right') 'string|Stringable' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% assert_type app "Symfony\\Bridge\\Twig\\AppVariable" %} | ||
{% assert_type app 'Symfony\\Bridge\\Twig\\AppVariable' %} | ||
|
||
{% block main %} | ||
{% assert_type app "Symfony\\Bridge\\Twig\\AppVariable" %} | ||
{% assert_type app 'Symfony\\Bridge\\Twig\\AppVariable' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% assert_type app "Symfony\\Bridge\\Twig\\AppVariable" %} | ||
{% assert_type app 'Symfony\\Bridge\\Twig\\AppVariable' %} | ||
|
||
{% set app = false %} | ||
|
||
{% block main %} | ||
{% assert_type app "false" %} | ||
{% assert_type app 'false' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{% set somethingInTheContext = true %} | ||
|
||
{% include '@EndToEnd/Include/_footer.twig' %} | ||
{% include '@EndToEnd/Include/_footer.twig' only %} | ||
{% include '@EndToEnd/Include/_footer.twig' with { title: 'Hello, World!' } %} | ||
{% include '@EndToEnd/Include/_footer.twig' with { title: 'Hello, World!' } only %} | ||
{{ include('@EndToEnd/Include/_footer.twig') }} | ||
{{ include('@EndToEnd/Include/_footer.twig', [], false) }} | ||
{{ include('@EndToEnd/Include/_footer.twig', { title: 'Hello, World!' }) }} | ||
{{ include('@EndToEnd/Include/_footer.twig', { title: 'Hello, World!' }, false) }} | ||
|
||
{% include '@EndToEnd/Include/maybe-exists.twig' ignore missing %} | ||
{% include '@EndToEnd/Include/maybe-exists.twig' ignore missing only %} | ||
{% include '@EndToEnd/Include/maybe-exists.twig' ignore missing with { title: 'Hello, World!' } %} | ||
{% include '@EndToEnd/Include/maybe-exists.twig' ignore missing with { title: 'Hello, World!' } only %} | ||
{{ include('@EndToEnd/Include/maybe-exists.twig', [], true, true) }} | ||
{{ include('@EndToEnd/Include/maybe-exists.twig', [], false, true) }} | ||
{{ include('@EndToEnd/Include/maybe-exists.twig', { title: 'Hello, World!' }, true, true) }} | ||
{{ include('@EndToEnd/Include/maybe-exists.twig', { title: 'Hello, World!' }, false, true) }} | ||
|
||
{% include ['@EndToEnd/Include/maybe-exists.twig', '@EndToEnd/Include/_footer.twig'] %} | ||
{% include ['@EndToEnd/Include/maybe-exists.twig', '@EndToEnd/Include/_footer.twig'] ignore missing %} | ||
{{ include(['@EndToEnd/Include/maybe-exists.twig', '@EndToEnd/Include/_footer.twig']) }} | ||
{{ include(['@EndToEnd/Include/maybe-exists.twig', '@EndToEnd/Include/_footer.twig'], [], true, true) }} | ||
|
||
{% set template = '@EndToEnd/Include/_footer.twig' %} | ||
{% include template %} | ||
{{ include(template) }} | ||
|
||
{% types { | ||
isMobile: 'bool' | ||
} %} | ||
|
||
{% include isMobile ? '@EndToEnd/Include/isMobile.twig' : '@EndToEnd/Include/_footer.twig' %} | ||
{{ include(isMobile ? '@EndToEnd/Include/isMobile.twig' : '@EndToEnd/Include/_footer.twig') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,5 @@ | |
</html> | ||
|
||
{# {% macro hello(name) %} #} | ||
{# HELLO {{ name }} #} | ||
{# HELLO {{ name }} #} | ||
{# {% endmacro %} #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{% extends "@EndToEnd/Inheritance/_layout.twig" %} | ||
{% import "@EndToEnd/Inheritance/_layout.twig" as layout %} | ||
{% extends '@EndToEnd/Inheritance/_layout.twig' %} | ||
{% import '@EndToEnd/Inheritance/_layout.twig' as layout %} | ||
|
||
{% set title = 'Welcome' %} | ||
|
||
{% block header %} | ||
Override header | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "@EndToEnd/Inheritance/_layout.twig" %} | ||
{% extends '@EndToEnd/Inheritance/_layout.twig' %} | ||
|
||
{% set title = 'Welcome' %} | ||
{% set subtitle = 'Welcome' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{% set template = "@EndToEnd/Inheritance/_layout.twig" %} | ||
{% set template = '@EndToEnd/Inheritance/_layout.twig' %} | ||
{% extends template %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{% assert_type form1 "Symfony\\Component\\Form\\FormView" %} | ||
{% assert_type form2 "Symfony\\Component\\Form\\FormView" %} | ||
{% assert_type form1 'Symfony\\Component\\Form\\FormView' %} | ||
{% assert_type form2 'Symfony\\Component\\Form\\FormView' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
{% if not allowed %} | ||
No access | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.