Skip to main content

BowerStatic integration for Pyramid

Project description

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

CHANGES

0.3 (2014-11-19)

  • BowerStatic 0.7 has changed the API for tweens, which is changed in version 0.3 of pyramid_bowerstatic.

0.2 (2014-11-13)

  • With the release of bowestatic 0.6 it can be used as tweens. As a consequence bower.wrap is not needed anymore. Which makes it pyramid_bowerstatic easier to use.

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.3.zip (10.0 kB view details)

Uploaded Source

File details

Details for the file pyramid_bowerstatic-0.3.zip.

File metadata

File hashes

Hashes for pyramid_bowerstatic-0.3.zip
Algorithm Hash digest
SHA256 ca8abeb39bc4029cc3ea056c54f11315e61a538f11348fc86bc8e9bd8711214f
MD5 d6f3e124285d022f29e42ef16abc3ce0
BLAKE2b-256 46a8a7efcccd190f0d181d1d103ff72c2761d7cc3e5f174e2932d3404eac001f

See more details on using hashes here.

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