diff --git a/orun/extjs/app.html b/orun/extjs/app.html
index bdc56aa..4fa7c29 100644
--- a/orun/extjs/app.html
+++ b/orun/extjs/app.html
@@ -4,8 +4,7 @@
{title}
-
-
+ {packages}
+
+'''.format(base_url=BASE_URL,
+ theme_model=THEME_MODEL,
+ chart_theme_model=CHART_THEME_MODEL) if ENABLE_CHARTS else ''
+EXTJS_PACKAGES = '' + CHART_HTML_CODE
+
@cherrypy.expose
class ExtJS:
_cp_config = {
@@ -31,7 +40,7 @@ class ExtApplication(cp.Application):
theme=THEME,
theme_model=THEME_MODEL,
script=str(js.js_manager),
- chart_theme_model=CHART_THEME_MODEL)
+ packages=EXTJS_PACKAGES)
@cherrypy.expose
def ajax_callback(self, *args, **kwargs):