Commit 89c7334f authored by Christian Wander's avatar Christian Wander
Browse files

playing with a template

parent bc8bdec1
#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 amethod():
return "Hello from my 1st controller"
def hello_method():
return render_template('hello.html', name="foo")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment