|
@@ -6,9 +6,9 @@ from ..template.loader import TemplateLoader
|
6
|
6
|
# This module contains the web UI controllers that will be called from the web ui class
|
7
|
7
|
|
8
|
8
|
|
9
|
|
-def get_response(tpl, mimetype='text/html', status_code=200):
|
|
9
|
+def get_response(tpl, tpl_vars={}, mimetype='text/html', status_code=200):
|
10
|
10
|
loader = TemplateLoader()
|
11
|
|
- response = Response(loader.render_to_response(tpl), mimetype=mimetype)
|
|
11
|
+ response = Response(loader.render_to_response(tpl, template_vars=tpl_vars), mimetype=mimetype)
|
12
|
12
|
response.status_code = status_code
|
13
|
13
|
return response
|
14
|
14
|
|