title: How to pass url as parameter in flask template?
body: <p>I want to pass the url as parameter in _header.html, so that in future in there is any change arrive then we can change in only through one function, this _header.html is included in base.html, I am new in flask so for I just use <code>{% urlparameter%</code> I don't know this right or not. Please tell me how to do that, is we required to write any python function for this?</p>
  
  <p>Here I am using <code>http://192.168.206.133:5001/metering</code> In Future this will change, so any good approach to handle such type of case</p>
  
  <p><strong>_header.html</strong></p>
  
  <pre><code>&lt;h1 class="brand"&gt;&lt;a href="http://192.168.206.133:5001/metering""&gt;{% url parameter %}&lt;/a&gt;&lt;/h1&gt;
  </code></pre>
  
  <p><strong>base.html</strong></p>
  
  <pre><code>&lt;body ng-app="flaskhorizonapp"&gt;
      {% block content %}
          &lt;div id="container"&gt;
              &lt;div class='topbar'&gt;
                  {% include "_header.html" %}
              &lt;/div&gt;
          &lt;/div&gt;
      {% endblock %}
  &lt;/body&gt;
  </code></pre>