From 69534cfdc959d784d377bb2df81cc3ef0fac60b2 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 19 Jun 2020 17:36:57 -0500 Subject: [PATCH] add jinja templating code for basic table --- trivia/templates/index.html | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/trivia/templates/index.html b/trivia/templates/index.html index 9590d18..7e52451 100644 --- a/trivia/templates/index.html +++ b/trivia/templates/index.html @@ -3,8 +3,86 @@ Index + + + + + + + {% for i in range(scoreCount) %} + + {% endfor %} + + + + {% for team in teams %} + + + + {% for score in team.scores %} + + {% endfor %} + + {% endfor %} + +
RankTeam Name{{ i + 1 }}
{{ range(1, teams | length) | random }}{{ team.name }}{{ score }}
+ \ No newline at end of file