Homec4science

assets: working combined assets

Authored by Yoan Blanc <yoan.blanc@cern.ch> on May 5 2014, 14:32.

Description

assets: working combined assets

  • Fixing static_url_path feature.
  • Fixing that all assets are created correctly using: url_for("static", filename="css/spam_and_eggs.css"). For specific modules, it's handy to give the module name as well, but it doesn't change anything, e.g., "annotations.static"
  • Using STATIC_MAP to distinguish between modules and external resources.
  • Using static_folder to point to the generated files. A hack is used to index the static files living in invenio.base.
  • Relying on ASSETS_DEBUG for webassets debug mode.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:05
Parents
R3600:5fc6fef8c6d1: installation: Flask-Assets 0.9 and Jinja2 2.7.2
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:fb5f3ff498b7: assets: working combined assets (authored by Yoan Blanc <yoan.blanc@cern.ch>).Jun 4 2014, 16:05