forked from VincentLanglet/Twig-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIncludeToRenderFunctionRuleTest.twig
More file actions
17 lines (15 loc) · 1.01 KB
/
IncludeToRenderFunctionRuleTest.twig
File metadata and controls
17 lines (15 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ include('template.html') }}
{{ include('template.html', {'foo': 'bar'}, true) }}
{{ include('template.html', {'foo': 'bar'}, true, true) }}
{{ include('template.html', {'foo': 'bar'}, true, true, true) }}
{{ include('template.html', with_context = true) }}
{{ include(['template_a.html', 'template_b.html']) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, true) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, true, true) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, true, true, true) }}
{{ include(['template_a.html', 'template_b.html'], with_context = true) }}
{{ include(['template_a.html', 'template_b.html'], with_context = false) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, false) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, false, true) }}
{{ include(['template_a.html', 'template_b.html'], {'foo': 'bar'}, false, true, true) }}
{{ include(['template_a.html', 'template_b.html'], with_context = true) }}