def display_app(): form = forms.RenderArgsForm(request.form) path = '{0}/widgets/{1}/templates/{2}'.format(g.app, g.widget, form.page.data) args = load_widget(g.app, g.widget, form.key.entries, form.value.entries) template = render_template(path, **args) return template
def display_app(): form = forms.RenderArgsForm(request.form) path = '{0}/interface/templates/{1}'.format(g.app, form.page.data) # Do not use os.path.join args = load_app(g.app, form.key.entries, form.value.entries) template = render_template(path, **args) return template