title: Call multiple functions from a single route in flask
body: <p>I have 2 functions in a single direction of page.</p>
  
  <blockquote>
    <p>How to access both of them individually? <br>
    Now what's happening is, only 1st function is getting called.</p>
  </blockquote>
  
  <p>The below program is a madeup prototype and my requirement builds on this logic.</p>
  
  <pre><code>from bottle import get,post,run,route,request
  
  content1 = ''' 
  &lt;html&gt;
  &lt;h1&gt;Page 1 function &lt;/h1&gt;
  &lt;form action='details' method='post'&gt;
  &lt;input type = "text" name="uname"&gt;
  &lt;input type = "submit" &gt;
  &lt;/form&gt;
  &lt;/html&gt;'''
  
  content11 = ''' 
  &lt;html&gt;
  &lt;h1&gt;Page 2 function &lt;/h1&gt;
  &lt;form action='details' method='post'&gt;
  &lt;input type = "text" name="uname"&gt;
  &lt;input type = "submit" &gt;
  &lt;/form&gt;
  &lt;/html&gt;'''
  
  content2 = '''&lt;html&gt;&lt;h1&gt;Hello %s &lt;/h1&gt;&lt;/html&gt;'''
  
  @get('/home')
  def page1():
      return content1
  
  def page2():
      return content11  
  
  @post('/details')
  def page3():
      u_name = str(request.forms.get('uname'))
      return content2 %u_name
  
  run(host='localhost', port=8080, debug=True)
  </code></pre>