helpers: add possibility to add GET flags into assets.
This commit is contained in:
parent
0ca4b7cbfc
commit
7c2dd88d85
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ def url_replace(**qargs):
|
|||
return url('', **new_args)
|
||||
|
||||
|
||||
def asset(path, ver=None):
|
||||
def asset(path, ver=None, **kwargs):
|
||||
"""
|
||||
Helper to generate a static asset file path for rhodecode assets
|
||||
|
||||
|
|
@ -128,6 +128,7 @@ def asset(path, ver=None):
|
|||
"""
|
||||
request = get_current_request()
|
||||
query = {}
|
||||
query.update(kwargs)
|
||||
if ver:
|
||||
query = {'ver': ver}
|
||||
return request.static_path(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue