I’ve already spent hours searching for an anwers to this problem, but no matter what I try It just doesn’t work. I’m a beginner at programming so trying to figure it out for myself has been pretty hard, I’ll be glad if anyone can help me.
I’m using vscode, intalled pip flask, jinja2, jinja2-cli. If I change “select language mode” to jinja-html the html doesn’t work. If I go back to html, jinja doesn’t work. Installed better jinja extension, changed json settings “files.associations” and “emmet.includeLanguages”.
I just wanna render a page TT-TT
last code I tried:
python code:
from flask import Flask, render_template
app = Flask(__name__, template_folder='.')
@app.route('/user/<name>')
def user(name):
return render_template("user.html", name=name)
html code:
<h1> Hello {{ Name }} </h1>
Emily Oliveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.