I created a small web app using Flask. Based on inputs from users the app dynamically creates a html and then prints it to book.html in my templates folder, which should be properly rendered in /book. Despite the fact that if check the file directly the data is correct, in the browser the data is either not showing or showing and then disappearing.
I don't know whether it's relevant but the book.html is actually created by a separate script which I'm running as an always-on task and it includes a meta tag to refresh the page.