------------------------------------------
Management assets for baka framework and Pyramid using
`webassets <http://webassets.readthedocs.org>`_.
Basic usage
```````````
.. code:: python
baka_assets.config = {your_root_package_or_egg}:configs
baka_assets.assets = {your_root_package_or_egg}:assets
baka_assets.bundles = assets.yaml
baka_assets.url = static
baka_assets.debug = False
baka_assets.manifest = file
baka_assets.cache = False
baka_assets.auto_build = True
in assets.yaml
.. code::
css-vendor:
filters: scss,cssmin
depends: '**/*.scss'
output: {your_root_package_or_egg}:public/vendor.%(version)s.css
contents: styles/app.scss
js-vendor:
config:
UGLIFYJS_BIN: ./node_modules/.bin/uglifyjs
filters: uglifyjs
output: {your_root_package_or_egg}:public/vendor.%(version)s.js
contents:
- javascripts/pace.js
- javascripts/moment-with-locales.js
- javascripts/jquery.js
- javascripts/handlebars.js
- javascripts/handlers-jquery.js
- javascripts/cookies.js
- javascripts/lodash.js
- javascripts/materialize.js
setup to config
```````````````
in python code
.. code:: python
config.include('baka_assets')
in development.ini
.. code::
pyramid.includes =
pyramid_debugtoolbar
baka_assets
Usage in mako template
```````````````````````
.. code::
% for url in request.web_env['js-vendor'].urls():
<script src="${request.static_url(url)}" />
% endfor
.. code:: python
js = Bundle('js/main.js', filters='uglifyjs', output='bundle.js',
depends='js/**/*.js')
Metadata
Release files for baka-assets 0.3.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz | 9.3 kB | Without provenance | Details for baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baka_assets-0.3.9.1-py3-none-any.whl | Python 3 | none | any | Details for baka_assets-0.3.9.1-py3-none-any.whl |
Total release size: 18.6 kB
Release files / baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz
| Download URL | baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ef06574596e4f86402e54e024fc2758eb4582e93dba22c15f1087f40beae02c
|
|
BLAKE2b-256 checksum How to use checksums |
26abda620febeee955517932f9c00d3013640fd1b0c27cd5447722bdb1f299d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / baka_assets-0.3.9.1-py3-none-any.whl
| Download URL | baka_assets-0.3.9.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82a9a00f2d6e4e6fbd603e9605512774f320058f2a588c025fd69e62ea5a0603
|
|
BLAKE2b-256 checksum How to use checksums |
6dc461093c2da44aec318fa0c649b1e71878152c8f68c5ccf17b27256aa5a0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for baka-assets 0.3.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.