def index(): return flask.render_template( "index.html.tpl", link = "home", form = dict(), errors = dict() )
def form_action(): return flask.render_template( "index.html.tpl", link = "form", form = dict(), errors = dict( name = ["Invalid name"], age = ["Invalid age"] ) )