from flask import Flask
from flask_bootstrap import Bootstrap
from flask_flatpages import FlatPages, pygmented_markdown, pygments_style_defs
from flask_frozen import Freezer


app = Flask(__name__)

DEBUG = True
LINKS_ACTIVE = True

# Flask-FlatPages
flatpages = FlatPages(app)
FLATPAGES_AUTO_RELOAD = DEBUG
FLATPAGES_EXTENSION = '.md'
FLATPAGES_ROOT = 'content'
LESSON_DIR = 'lessons'
DAY_DIR = 'days'

# Flask-Bootstrap
Bootstrap(app)

FREEZER_RELATIVE_URLS = True
freezer = Freezer(app)

# Apply config paramaters (the all-caps variables above)
app.config.from_object(__name__)