so I have
@app.route("/Current.html")
def current():
recent = api_info.user(user_name="GDcheerios")
return render_template(
'Current.html', # Template file
recent = recent
)
just as a basic test code.
here is the html file where the variable recent is
<body style="background: linear-gradient(0deg, #143827, #266849);">
<a style="color: black; text-align: center;" href="\">Go back...</a>
<div class="match">
<h1>TEST</h1>
<h1>TEST</h1>
<h1>TEST</h1>
<h1>TEST</h1>
<h1>TEST</h1>
<h1>TEST</h1>
<h1>TEST</h1>
<h2>{{ recent.events }}</h2>
</div>
</body>
it outputs with
TEST TEST TEST TEST TEST TEST TEST
[{'display_html': "<img src='/images/A_small.png'/> <b><a href='/u/11339405'>GDcheerios</a></b> achieved rank #985 on <a href='/b/192258?m=0'>Itou Kanae - Puzzle (TV Size) [Hard]</a> (osu!)", 'beatmap_id': 192258, 'beatmapset_id': '63851', 'date': datetime.datetime(2021, 3, 1, 1, 37, 23, 260000), 'library': '', 'epic_factor': '1'}]
I would like to have this html put into the html file automatically with each variable that I call.