I'm trying to set up a webpage using Flask so I can pass Python variables to the HTML page. I created a test Python file with a page.html file inside a templates folder. I used the render_template function and passed it a variable number to be displayed on the page by referencing it in the html file (using {{number}} inside <p> tags). Instead of displaying the value of the variable, it displays the text {{number}}. I've seen other people online do the exact same thing and it works, does anyone know why it doesn't for me? I'm using VS code and Python 3.13.9.
Images attached of all of the above.
treecommand should give you the kind of text you need.