Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrijken/pyramid_bowerstatic
Integration of Bowerstatic in Pyramid
https://github.com/mrijken/pyramid_bowerstatic
Last synced: 3 months ago
JSON representation
Integration of Bowerstatic in Pyramid
- Host: GitHub
- URL: https://github.com/mrijken/pyramid_bowerstatic
- Owner: mrijken
- Created: 2014-11-03T20:45:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T03:48:06.000Z (over 4 years ago)
- Last Synced: 2024-07-24T06:49:04.606Z (4 months ago)
- Language: Python
- Homepage:
- Size: 171 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
Awesome Lists containing this project
- awesome-pyramid - pyramid_bowerstatic - (Asset Management)
README
pyramid_bowerstatic: BowerStatic integration for Pyramid
========================================================pyramid_bowerstatic integrates BowerStatic_ into Pyramid_.
When you create a pyramid app, make sure to include pyramid_bowerstatic::
config.include('pyramid_bowerstatic')
Resources can be added to the bowerstatic repository by::
components = pyramid_bowerstatic.create_components('myapp', os.path.join(os.path.dirname(__file__), 'bower_components'))
And resources can be used in views by::
request.include(components, 'jquery')
Resource can also be inserted in the view/template directly by using::
request.get_bowerstatic_path('myapp', 'jquery', 'jquery.js')
.. _BowerStatic: http://bowerstatic.readthedocs.org
.. _Pyramid: http://docs.pylonsproject.org/projects/pyramid