Create attractive VASL scenarios, with loads of useful information embedded to assist with game play. https://vasl-templates.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
vasl-templates/vasl_templates/webapp/generate.py

15 lines
412 B

""" Webapp handlers. """
from flask import request
from vasl_templates.webapp import app
# ---------------------------------------------------------------------
@app.route( "/generate", methods=["POST"] )
def generate_html():
"""Generate a response"""
val = request.form.get( "val" )
if val:
val = val.strip()
return "You said: {}".format( '"{}"'.format(val) if val else "nothing!" )