Skip to content

Commit

Permalink
Fix Jinja2 scoping issue.
Browse files Browse the repository at this point in the history
This bug surfaced with Jinja 2.9. Closes #477.
  • Loading branch information
miracle2k committed Jan 8, 2017
1 parent c129e40 commit f11f7d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webassets/ext/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def parse(self, parser):
# Interlope end.
#
# Summary: We have to be satisfied with a single EXTRA variable.
args = [nodes.Name('ASSET_URL', 'store'),
nodes.Name('EXTRA', 'store')]
args = [nodes.Name('ASSET_URL', 'param'),
nodes.Name('EXTRA', 'param')]

# Return a ``CallBlock``, which means Jinja2 will call a Python method
# of ours when the tag needs to be rendered. That method can then
Expand Down

0 comments on commit f11f7d3

Please sign in to comment.