def index(path): if path == "": return render_template("browse.html", output=getScripts("info")) if utils.isScript("info/" + path): g.title = path return render_template("script.html", output=utils.tabularToDict(utils.runScript("info/" + path))) abort(404)
def index(): g.title = "Home" g.url_path = '/' raw = utils.runScript('index.sh') data = utils.tabularToDict(raw) return render_template('index.html', output=data)
def index(path): if request.method == 'POST': resp = utils.runScript('controls/' + path).replace('\n', '<br/>') return resp return render_template('ajax.html', output=getControls())