title: How can I access a block from flask(not from template)?
body: <p>here's my generalized question:</p>
  
  <p>base.html :</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      {% if title %}
      &lt;title&gt;{{title}}&lt;/title&gt;
      {% else %}
      &lt;title&gt;test&lt;/title&gt;
      {% endif %}
    &lt;/head&gt;
    &lt;body&gt;
      {% block content %} {% endblock %}
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I write a function that can directly create a block? maybe something like:</p>
  
  <pre><code>@app.route("/foo")
  def foo():
      content = "&lt;h1&gt;this is foo page&lt;/h1&gt;"
      return render_html("base.html", content = content)
  </code></pre>