Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chris
Pixelframe
Commits
89c7334f
Commit
89c7334f
authored
Dec 22, 2020
by
Christian Wander
Browse files
playing with a template
parent
bc8bdec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pixelframe/controllers.py
View file @
89c7334f
#from flask import Flask
from
pixelframe
import
app
# from flask import Flask
from
flask
import
render_template
@
app
.
route
(
'/'
)
def
main_page
():
return
"This is the main page"
@
app
.
route
(
'/hello'
)
def
a
method
():
return
"Hello from my 1st controller"
def
hello_
method
():
return
render_template
(
'hello.html'
,
name
=
"foo"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment