def index(self): # Return a rendered template c.stylesheets = ["/css/ui-lightness/jquery-ui-1.8.10.custom.css", "/css/style.css"] c.jsincludes = ["/js/processing.js", "/js/sparklines.min.js", "/js/jquery-1.4.4.min.js", "/js/jquery-ui-1.8.10.custom.min.js", "/js/cortex/cortex.js", "/js/cortex/histogram.js"] c.widgets = [ { "id": "histogram", "constructor": "new Histogram('histogram', '/GET/histogram.txt')" } ] return render('/discover.mako')
def index(self): # Return a rendered template c.stylesheets = ["/css/ui-lightness/jquery-ui-1.8.10.custom.css", "/css/style.css"] c.jsincludes = ["/js/processing.js", "/js/sparklines.min.js", "/js/jquery-1.4.4.min.js", "/js/jquery-ui-1.8.10.custom.min.js", "/js/cortex/cortex.js", "/js/cortex/histogram.js", "/js/cortex/debuglog.js"] c.widgets = [ { "id": "histogram", "constructor": "new Histogram('histogram', '/GET/histogram.txt')" }, {"id": "debuglog", "constructor": "new DebugLog('debuglog', '/GET/debuglog.json')" } ] rd.append("debuglog", "\ndiscover controller called") return render('/discover.mako')