Skip to main content

BowerStatic integration for Pyramid

Project description

pyramid_bowerstatic: BowerStatic integration for Pyramid
========================================================

pyramid_bowerstatic integrates BowerStatic_ into Pyramid_.

When create a pyramid app, make sure to include pyramid_bowerstatic and wrap the
wgsi_app with bowerstatic:

...

config.include('pyramid_bowerstatic')

...

app = pyramid_bowerstatic.bower.wrap(config.make_wsgi_app())

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_url('myapp', 'jquery', 'jquery.js')


.. _BowerStatic: http://bowerstatic.readthedocs.org

.. _Pyramidh: http://docs.pylonsproject.org/projects/pyramid


CHANGES
*******

0.1 (2014-11-08)
================

- Initial public 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

pyramid_bowerstatic-0.1.zip (9.6 kB view details)

Uploaded Source

File details

Details for the file pyramid_bowerstatic-0.1.zip.

File metadata

File hashes

Hashes for pyramid_bowerstatic-0.1.zip
Algorithm Hash digest
SHA256 c84de8557b2eaf55b91e08963dffd47bede35072f36575d102001e499148676b
MD5 69a22353b1cc2b863c040d59818ba5ae
BLAKE2b-256 683596cc8c1bf7b6562154aa079f0aef59994ea1d12f21ca40a2f723195a2849

See more details on using hashes here.

Supported by

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