Skip to main content
baka_assets for baka framework or pyramid
------------------------------------------


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')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baka_assets-0.3.9.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz.

File metadata

File hashes

Hashes for baka_assets-0.3.9.1.macosx-10.11-x86_64.tar.gz
Algorithm Hash digest
SHA256 5ef06574596e4f86402e54e024fc2758eb4582e93dba22c15f1087f40beae02c
MD5 050ce67325704583f1df6149b73bd81c
BLAKE2b-256 26abda620febeee955517932f9c00d3013640fd1b0c27cd5447722bdb1f299d3

See more details on using hashes here.

File details

Details for the file baka_assets-0.3.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for baka_assets-0.3.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82a9a00f2d6e4e6fbd603e9605512774f320058f2a588c025fd69e62ea5a0603
MD5 b11ca2c32044f9c3c41bfcb076b27f88
BLAKE2b-256 6dc461093c2da44aec318fa0c649b1e71878152c8f68c5ccf17b27256aa5a0c7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.9.1 This release

2 files

0.3.9

2 files

0.3.8.1

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.3

Supported by

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