Skip to content

Commit

Permalink
Supply new 4th "elif" argument to If node
Browse files Browse the repository at this point in the history
This is for use with Jinja2 version 2.10 and later.
  • Loading branch information
grahambell committed Apr 15, 2023
1 parent 87de44c commit e7b0460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jinja2_orderblocks/orderblocks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# OrderBlocks extension for Jinja2
# Copyright (C) 2016 Graham Bell
# Copyright (C) 2016-2023 Graham Bell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -63,7 +63,7 @@ def parse(self, parser):
nodes.Compare(
block_name,
[nodes.Operand('eq', nodes.Const(node.name))]),
[node], []))
[node], [], []))

block_names.append(node.name)

Expand Down

0 comments on commit e7b0460

Please sign in to comment.