Using flask assets.
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user