from flask import Flask, request, render_template
import main

# Test for succesful 'import' of 'variables' from another Python file....
print (main.song)
print (main.album)
print (main.cover)

# Code to render HTML to templates file 'index.html'
app = Flask(__name__)

@app.route('/')
def index():
    song, album, cover = main.song, main.album, main.cover
    template_context = dict(song=song, album=album, cover=cover)
    return render_template('index.html', **template_context)

if __name__ == "__main__":
    app.debug = True
    app.run()

