We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e5cec commit 6523a39Copy full SHA for 6523a39
tvseries/core.py
@@ -1,13 +1,13 @@
1
-from flask import Flask
+from flask import Flask, render_template
2
3
app = Flask(__name__)
4
5
6
@app.route('/')
7
def home():
8
- return "<h1>Hello world!</h1>"
+ return render_template('home.html')
9
10
11
@app.route('/<name>')
12
def name(name):
13
- return "<h1>Hello {}!</h1>".format(name)
+ return render_template('home2.html', name=name)
tvseries/templates/home.html
@@ -0,0 +1 @@
+<h1>Hello world!</h1>
tvseries/templates/home2.html
+<h1>Hello {{ name }}!</h1>
0 commit comments