Skip to content

Commit

Permalink
Fix own defined variables should overwrite _context
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Nov 8, 2024
1 parent b7999c2 commit 4911033
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{ render('template.html', _context) }}
{{ render('template.html', {'foo': 'bar'}|merge(_context)) }}
{{ render('template.html', {'foo': 'bar'}|merge(_context), true) }}
{{ render('template.html', {'foo': 'bar'}|merge(_context), true, true) }}
{{ 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'], {'foo': 'bar'}|merge(_context)) }}
{{ render(['template_a.html', 'template_b.html'], {'foo': 'bar'}|merge(_context), true) }}
{{ render(['template_a.html', 'template_b.html'], {'foo': 'bar'}|merge(_context), true, true) }}
{{ 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']) }}
Expand Down

0 comments on commit 4911033

Please sign in to comment.