accountant/accountant/frontend/__init__.py
2015-08-16 00:33:35 +02:00

22 lines
549 B
Python

from flask import Blueprint, render_template
from flask.ext.assets import Environment, Bundle
frontend = Blueprint(
'frontend',
__name__,
template_folder='templates',
static_folder='static'
)
frontend_js = Bundle('frontend/js/app.js', 'frontend/js/accounts.js',
'frontend/js/entries.js', 'frontend/js/scheduler.js')
frontend_css = Bundle('frontend/css/main.css')
@frontend.route('/', defaults={'path': 'accounts'})
@frontend.route('/<path:path>')
def index(path):
return render_template('layout.html')