I have a website which contains a navbar with various options and a footer, I want to include the navbar and footer in different file so that I can use when in all other webpages. I am using Flask in development
This is my code for navbar
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<!-- Brand -->
<a class="navbar-brand" href="#"> SpiritUs</a>
<!-- Links -->
<ul class="navbar-nav">
<!-- Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Beer
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ url_for('indianBeer') }}">Indian Beer</a>
<a class="dropdown-item" href="{{ url_for('importedBeer') }}">Imported Beer</a>
</div>
</li>
</ul>
</nav>
This is my footer
<div class="Footer">
<div class="container">
<div class="row centered">
<h4 style="text-transform:uppercase;"><em>
<span style="border-bottom: 2px solid #dd7700;"> Get your favourite liquior at your doorstep! </span>
<span style="border-bottom: 2px solid #dd2210;"> Contact Us</span>
</em></h4>
<p><strong>© Mahin Malhotra, Kunal Sharma and Anshu Bansal</strong></p>
<a href="https://twitter.com" target="_blank"><i class="fa fa-twitter"></i></a>
<a href="https://facebook.com" target="_blank"><i class="fa fa-facebook"></i></a>
</div><!-- row -->
</div><!-- container -->
</div><!-- Footer -->