diff --git a/.gitignore b/.gitignore
index ded6067..7663424 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+.sass-cache
+
+# github premade rules
*.py[cod]
# C extensions
diff --git a/app.py b/app.py
index cadd93c..a7508c4 100644
--- a/app.py
+++ b/app.py
@@ -1,7 +1,22 @@
+"""
+Module to contain all the project's Flask server plumbing.
+"""
+
from flask import Flask
+from flask import render_template, session
+
+from bitshift import *
app = Flask(__name__)
-app.secret_key = "\x03#\xa8\xf3!\xddHd\x11\x8dx\xd9mR\xb2\xfb\x89LH^\x05\xe7\xc6F"
+app.config.from_object("bitshift.config")
+
+app_env = app.jinja_env
+app_env.line_statement_prefix = "="
+app_env.globals.update(assets = assets)
+
+@app.route("/")
+def index():
+ return render_template("index.html")
if __name__ == "__main__":
- app.run(debug=True)
+ app.run()
diff --git a/bitshift/__init__.py b/bitshift/__init__.py
new file mode 100644
index 0000000..d51957e
--- /dev/null
+++ b/bitshift/__init__.py
@@ -0,0 +1 @@
+__all__ = ["config", "assets"]
diff --git a/bitshift/assets.py b/bitshift/assets.py
new file mode 100644
index 0000000..4754036
--- /dev/null
+++ b/bitshift/assets.py
@@ -0,0 +1,22 @@
+"""
+Module contains helper functions to be used inside the project's Jinja
+templates.
+"""
+
+from flask import Markup
+
+ASSET_HTML_TEMPLATES = {
+ 'css': "",
+ 'js': ""
+}
+
+def tag(filename):
+ """
+ Return HTML tag for asset named filename.
+
+ Return either a