##// END OF EJS Templates
helpers: add possibility to add GET flags into assets.
marcink -
r1472:12ef6b6c default
parent child Browse files
Show More
@@ -117,7 +117,7 b' def url_replace(**qargs):'
117 return url('', **new_args)
117 return url('', **new_args)
118
118
119
119
120 def asset(path, ver=None):
120 def asset(path, ver=None, **kwargs):
121 """
121 """
122 Helper to generate a static asset file path for rhodecode assets
122 Helper to generate a static asset file path for rhodecode assets
123
123
@@ -128,6 +128,7 b' def asset(path, ver=None):'
128 """
128 """
129 request = get_current_request()
129 request = get_current_request()
130 query = {}
130 query = {}
131 query.update(kwargs)
131 if ver:
132 if ver:
132 query = {'ver': ver}
133 query = {'ver': ver}
133 return request.static_path(
134 return request.static_path(
General Comments 0
You need to be logged in to leave comments. Login now