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


Management locale 118n for baka framework and Pyramid


Basic usage
```````````

.. code:: yaml
package: {your_root_package_or_egg}
armor:
config: configs # config folder
assets: assets # assets folder
bundles: assets.yaml # filename assets config
url: static
debug: False
manifest: file
cache: False
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_armor')


in development.ini


.. code::

pyramid.includes =
pyramid_debugtoolbar
baka_armor


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-i18n 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baka-i18n 0.1.3
File Size Uploaded
baka_i18n-0.1.3.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baka-i18n 0.1.3
File Interpreter ABI Platform
baka_i18n-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / baka_i18n-0.1.3.tar.gz

Download URL baka_i18n-0.1.3.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
029c9c6458abcbde3bcc68f80c0c29500978ef7623aca6cb13181c3111a94510
BLAKE2b-256 checksum
How to use checksums
f6ddbafc73185422dcfa3bd16b15b60093e0e4fabec8808f17b667be7307b151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / baka_i18n-0.1.3-py3-none-any.whl

Download URL baka_i18n-0.1.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc69c2c7eacf236ec008010ca86ef3835a2a4bf47a372722435fab1f5bcef2ac
BLAKE2b-256 checksum
How to use checksums
c34ce88f88b80650e7276196f10e22a6d5af611d0854878420e053d35e7930ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page