I have a python file called writer.py
and an index.html
in the same directory.
In my python file i have following import:
from reader import titles, links
print("titles and links")
for i in range(min(len(titles), 10)):
print("- {} ({})".format(titles[i], links[i]))
i now want to display a the first title of my array titles in my index.html
file, which currently looks like this:
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>{{ title }}</h1>
</body>
</html>
How to do that?
Thanks in advance