This is an extremely small and lightweight package to enable the usage of custom templatesg in static HTML websites.
<!DOCTYPE html>
<html>
<head>
...
<!-- Include the TemplatelyJS package -->
<script src="/templately.js"></script>
<!-- Or use the jsDelivr CDN -->
<script src="https://cdn.jsdelivr.net/npm/@vthechamp/templately"></script>
</head>
<body>
<!-- Use a custom template -->
<custom-template src="/templates/navbar.html"></custom-template>
</body>
</html>
<!-- Define a custom template -->
<nav class="nav">
<h1 class="logo"><a href="#">Flexbox</a></h1>
<ul class="main-nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>