title: How to make Flask scroll to a part of the page?
body: <p>My website has one page with several sections. It has links that look like the following that scroll the user to the indicated section.</p>
  
  <pre><code>&lt;a href="#section"&gt;Section&lt;/a&gt;
  </code></pre>
  
  <p>Typing www.my-site.com#section will also do the trick. </p>
  
  <p>How do I make Flask scroll to a section of the page when calling render_template('page.html')? Is there a way to do something like </p>
  
  <pre><code>render_template('page.html', section=section)
  </code></pre>
  
  <p>and then in the html do </p>
  
  <pre><code>{% if section %}
  scroll_to_section
  {% endif %}
  </code></pre>
  
  <p>? I seriously have no idea how to handle this. Any help will be much appreciated. Thanks!</p>