Skip to content

Integration of BowerStatic into Pyramid for managing static resources with Bower

License

Notifications You must be signed in to change notification settings

cruxlog/djed.static

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djed.static

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:

$ /path/to/pyvenv/bin/pip install djed.static

Include it in your Pyramid application:

config.include('djed.static')

Set-up the path to the bower_components directory in your .ini file:

[app:main]
# ... other settings ...
djed.static.components_path = myapp:static/bower_components

Or use the following statement to add the bower_components directory:

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

Include static resources on your HTML page. You can do this in templates or somewhere else in your code:

request.include('jquery')

All additional required resources are automatically resolved and are also included on your HTML page.

Documentation and Support

Documentation can be found at https://djedstatic.readthedocs.org/

If you've got questions, contact the djedproject mailling list.

To report bugs, use the issue tracker.

License

djed.static is offered under the ISC license.

About

Integration of BowerStatic into Pyramid for managing static resources with Bower

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.7%
  • JavaScript 0.3%