title: Flask: how to implement a general searchbar for every view, without rewriting it?
body: <p>I have a Problem to implement my search bar. I have it in my base template, an get a returnvalue over the get attribute ?search=</p>
  
  <p>my Problem is now, that I want to use the searchbar from every site in my project without rewrite the searchcall in every single view.</p>
  
  <p>is there a way to only write it once?</p>
  
  <p>If it helps, my searchbarcode:</p>
  
  <pre><code>&lt;input class="form-control" name="search" placeholder="Search Here" autocomplete="off" autofocus="autofocus" type="text"&gt;        
  </code></pre>