--- a/REQUIREMENTS Wed May 01 15:59:03 2013 +0900
+++ b/REQUIREMENTS Wed May 01 22:55:38 2013 +0900
--- a/app.py Wed May 01 15:59:03 2013 +0900
+++ b/app.py Wed May 01 22:55:38 2013 +0900
from flask import Flask, g, render_template
+from flask.ext.assets import Environment
from flask.ext.restful import Api
from CodernityDB.database_thread_safe import ThreadSafeDatabase
app.config.from_object(__name__)
+assets = Environment(app)
--- a/templates/index.html Wed May 01 15:59:03 2013 +0900
+++ b/templates/index.html Wed May 01 22:55:38 2013 +0900
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
- <script src="{{ url_for('static', filename='js/backbone.shard.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/models.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/collections.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/views/base.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/views/inline.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/views/projects.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/views/tasks.js') }}"></script>
- <script src="{{ url_for('static', filename='js/framework/router.js') }}"></script>
- <script src="{{ url_for('static', filename='js/ui.js') }}"></script>
+ {% assets filter='jsmin', output='bundles/fruitbar.%(version)s.js',
+ 'js/backbone.shard.js',
+ 'js/framework/models.js',
+ 'js/framework/collections.js',
+ 'js/framework/views/base.js',
+ 'js/framework/views/inline.js',
+ 'js/framework/views/projects.js',
+ 'js/framework/views/tasks.js',
+ 'js/framework/router.js',
+ <script type="text/javascript" src="{{ ASSET_URL }}"></script>
_.extend(_.templateSettings, {