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