title: Flask post to the same page
body: <p>I have:</p>
  
  <pre><code> from flask import Flask, render_template
  import datetime
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
     now = datetime.datetime.now()
     timeString = now.strftime("%Y-%m-%d %H:%M")
     templateData = {
    'title' : 'HELLO!',
    'time': timeString
    }
   return render_template('main.html', **templateData)
  
  if __name__ == "__main__":
  app.run(host='0.0.0.0', port=80, debug=True)
  </code></pre>
  
  <p>and html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
   &lt;head&gt;
      &lt;title&gt;{{ title }}&lt;/title&gt;
  &lt;/head&gt;
     &lt;body&gt;
    &lt;h1&gt;Hello, World!&lt;/h1&gt;
    &lt;h2&gt;The date and time on the server is: {{ time }}&lt;/h2&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is possible on flask create a button to post in a flask function on the same page?
  Thank</p>