title: Jinja2 render multiple html files?
body: <p>I have main <code>index.html</code> file and it contains several links to sub-html files. For example, from <code>index.html</code> if an user clicks an link it directs to sub-page <code>intro.html</code> but seems like <code>render_template</code> only receives one <code>html</code> file. How do I connect multiple html files using <code>render_template</code>?</p>
  
  <hr>
  
  <p>Files structures:
      templates/
          index.html
          text.html</p>
  
  <p>I just want to link <code>text.html</code> file from <code>index.html</code>.</p>
  
  <p>In the <code>index.html</code>, I will have a link like the following:</p>
  
  <pre><code>&lt;a href="text.html"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>Then I want to direct the <code>Link</code> to load the contents of <code>text.html</code></p>
  
  <hr>
  
  <p>Second edit</p>
  
  <pre><code>@app.route('/myhtml', methods=['GET'])
  def myhtml():
      return render_template('myhtml.html')
  </code></pre>
  
  <p>I want to to something like this.
  If I type <code>localhost:8000/myhtml</code>  it should link to <code>myhtml.html</code></p>