old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from flask.ext.assets import Environment, Bundle
  
  
  css_application = Bundle(
      'less/main.less',
      filters='less',
      debug=False,
      output='gen/app.css'
  )
  
  css_all = Bundle(
      # 'vendor/some/library.css',
      css_application,
      filters='cssmin',
      output='gen/app.min.css'
  )
  
  js_vendor = Bundle(
      'vendor/dustjs-linkedin/dist/dust-full.js',
      'vendor/jquery/dist/jquery.js',
      'vendor/lodash/dist/lodash.js',
      # 'vendor/modernizr/dist/modernizr-build.js', # TODO Customize this
      'vendor/twitter-bootstrap-3.0.0/dist/js/bootstrap.js',
      filters='uglifyjs',
      output='gen/vendor.min.js'
  )
  
  js_ie = Bundle(
      'vendor/twitter-bootstrap-3.0.0/assets/js/html5shiv.js',
      'vendor/twitter-bootstrap-3.0.0/assets/js/respond.min.js',
      filters='uglifyjs',
      output='gen/ie.min.js'
  )
  
  js_dust = Bundle(
      'dust/',
      filters='dustjs',
      output='gen/templates.js',
  )
  
  js_main = Bundle(
      'libs/ba-debug.js',
      Bundle(
          'coffee/app.coffee',
          'coffee/init.coffee',  # Must be loaded after app.coffee but before anything else.
          'coffee/notify.coffee',
          'coffee/ajax.coffee',
          'coffee/singleton.coffee',
          'coffee/service/api-service.coffee',
          'coffee/listing.coffee',
          filters='coffeescript',
          output='gen/app.js'
      ),
      filters='uglifyjs',
      output='gen/app.min.js'
  )
  
  
  def init_app(app):
      webassets = Environment(app)
      webassets.register('css_all', css_all)
      webassets.register('js_vendor', js_vendor)
      webassets.register('js_ie', js_ie)
      webassets.register('js_dust', js_dust)
      webassets.register('js_main', js_main)
      webassets.manifest = 'cache' if not app.debug else False
      webassets.cache = not app.debug
      webassets.debug = app.debug
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from flask.ext.assets import Environment, Bundle
  
  
  css_application = Bundle(
      'less/main.less',
      filters='less',
      debug=False,
      output='gen/app.css'
  )
  
  css_all = Bundle(
      # 'vendor/some/library.css',
      css_application,
      filters='cssmin',
      output='gen/app.min.css'
  )
  
  js_vendor = Bundle(
      'vendor/dustjs-linkedin/dist/dust-full.js',
      'vendor/jquery/dist/jquery.js',
      'vendor/lodash/dist/lodash.js',
      # 'vendor/modernizr/modernizr.js', # TODO Customize this
      'vendor/twitter-bootstrap-3.0.0/dist/js/bootstrap.js',
      filters='uglifyjs',
      output='gen/vendor.min.js'
  )
  
  js_ie = Bundle(
      'vendor/twitter-bootstrap-3.0.0/assets/js/html5shiv.js',
      'vendor/twitter-bootstrap-3.0.0/assets/js/respond.min.js',
      filters='uglifyjs',
      output='gen/ie.min.js'
  )
  
  js_dust = Bundle(
      'dust/',
      filters='dustjs',
      output='gen/templates.js',
  )
  
  js_main = Bundle(
      'libs/ba-debug.js',
      Bundle(
          'coffee/app.coffee',
          'coffee/init.coffee',  # Must be loaded after app.coffee but before anything else.
          'coffee/notify.coffee',
          'coffee/ajax.coffee',
          'coffee/singleton.coffee',
          'coffee/service/api-service.coffee',
          'coffee/listing.coffee',
          filters='coffeescript',
          output='gen/app.js'
      ),
      filters='uglifyjs',
      output='gen/app.min.js'
  )
  
  
  def init_app(app):
      webassets = Environment(app)
      webassets.register('css_all', css_all)
      webassets.register('js_vendor', js_vendor)
      webassets.register('js_ie', js_ie)
      webassets.register('js_dust', js_dust)
      webassets.register('js_main', js_main)
      webassets.manifest = 'cache' if not app.debug else False
      webassets.cache = not app.debug
      webassets.debug = app.debug
  
subject: Fix path to customized modernizr build