Permalink
Browse files

Moved assets into __init__.py

  • Loading branch information...
Nigel Babu
Nigel Babu committed Jul 10, 2012
1 parent 5c8fc6e commit 8f986765570ce15a97330797a2843b1aa14f6291
Showing with 7 additions and 16 deletions.
  1. +7 −1 lastuserapp/__init__.py
  2. +0 −15 lastuserapp/assets.py
View
@@ -34,11 +34,17 @@
app.register_blueprint(baseframe)
assets = Environment(app)
+js = Bundle('js/libs/jquery-1.5.1.min.js',
+ 'js/libs/jquery.form.js',
+ 'js/scripts.js',
+ filters='jsmin', output='js/packed.js')
+
+assets.register('js_all', js)
+
for msg in __MESSAGES:
app.config[msg] = Markup(markdown(app.config.get(msg, '')))
-import lastuserapp.assets
import lastuserapp.mailclient
import lastuserapp.models
import lastuserapp.forms
View
@@ -1,15 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from flask.ext.assets import Environment, Bundle
-from lastuserapp import app
-
-assets = Environment(app)
-
-# --- Assets ------------------------------------------------------------------
-
-js = Bundle('js/libs/jquery-1.5.1.min.js',
- 'js/libs/jquery.form.js',
- 'js/scripts.js',
- filters='jsmin', output='js/packed.js')
-
-assets.register('js_all', js)

0 comments on commit 8f98676

Please sign in to comment.