Skip to content

Commit

Permalink
Add documentation of new parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed May 30, 2019
1 parent 0bb0ec1 commit 967844f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/webassets/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,12 @@ def urls(self, *args, **kwargs):
Insofar necessary, this will automatically create or update the files
behind these urls.
:param calculate_sri: Set to true to calculate a sub-resource integrity
string for the URLs. This changes the returned format.
:return: List of URIs if calculate_sri is False. If calculate_sri is
true: list of {'uri': '<uri>', 'sri': '<sri-hash>'}.
"""
ctx = wrap(self.env, self)
urls = []
Expand Down

0 comments on commit 967844f

Please sign in to comment.