Skip to main content

Integration of BowerStatic into Pyramid for managing static resources with Bower

Project description

https://travis-ci.org/djedproject/djed.static.png?branch=master

djed.static integrates BowerStatic into the Pyramid Web Framework. BowerStatic is a WSGI component that can serve static resources from front-end packages (JavaScript, CSS) that you install through the Bower package manager.

Getting Started

Install the package into your python environment:

pip install djed.static

Include it in your Pyramid application:

config.include('djed.static')

Initialize it with a directory that contains the Bower packages:

config.init_bower_components('myapp:static/bower_components')

If desired, add local Bower packages:

config.add_bower_component('myapp:static/mycomponent')

Include required Bower packages on your page. You can do this in templates or somewhere else in your code:

request.include('bootstrap')

License

djed.static is offered under the ISC license.

Change History

0.1 (2015-01-06)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djed.static-0.1.tar.gz (89.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page