From 663e797209b11d7d234ca90da82fb809ac688845 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 18 Oct 2024 15:50:19 +0200 Subject: Made macros out of reused components --- templates/players.j2 | 46 +++++----------------------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) (limited to 'templates/players.j2') diff --git a/templates/players.j2 b/templates/players.j2 index 05f886a..6db040a 100644 --- a/templates/players.j2 +++ b/templates/players.j2 @@ -1,53 +1,17 @@ -{% from "macros.j2" import player %} +{% from "macros.j2" import header, navbar, footer, player %} - - - - Match Up! - - - - - + {{ header() }}
- + {{ navbar() }}
{% for id, value in players.items() %} -
- {{ player(id, value.status, value.name) }} -
+
{{ player(id, value.status, value.name) }}
{% endfor %}
-
- Made by Karan using Flask, HTMX and Bulma -
+ {{ footer() }}
\ No newline at end of file -- cgit v1.3.1