Using flask assets.

This commit is contained in:
Alexis Lahouze
2015-08-16 00:33:35 +02:00
parent 642b8c5b98
commit fe53de1633
2 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,5 @@
from flask import Blueprint, render_template
from flask.ext.assets import Environment, Bundle
frontend = Blueprint(
'frontend',
@ -8,6 +9,12 @@ frontend = Blueprint(
)
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):