title: Flask - return items to base.html
body: <p>I was wondering if it is possible to make a default route which will return objects or items to the base.html (which all the other pages inherit from)</p>
  
  <p>something like this</p>
  
  <pre><code>@app.route(all)
  def base():
      test = 'Avaible to all'
      return render_template('base.html', test=test)
  </code></pre>
  
  <p>and therefore in the base.html you can just call the desired object, test in this case.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;My base page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      {% block body %}
      {% endblock %}
  
      &lt;!-- same text to all pages --&gt;
      {{ test }}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Of course if it is just a string I could just write it manually in the HTML - Base file, but hence I am asking is because I am going to implement sqlAlchemy and dynamic objects which will be changed over time in the back-end or database. 
  It could for example be, Greetings (username) or today it is (the-time) </p>