Add frontend tests and other stuff
[recipes.git] / backend / templates / base.html
index e71a492..6b8e1ad 100644 (file)
@@ -8,10 +8,15 @@
     </head>
 
     <body>
-        <div class="header-container"><h1><a href="/">~ RECIPES ~</a></h1></div>
-        <div class="main-container">
-            {% block main_container %}{% endblock %}
-        </div>
+        <script type="module">
+            import init from '/static/frontend.js';
+            async function run() {
+                await init();
+            }
+            run();
+        </script>
+
+        {% block body_container %}{% endblock %}
         <div class="footer-container">gburri - 2022</div>
     </body>
 </html>
\ No newline at end of file