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

Download files

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

Source Distribution

baka_i18n-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

baka_i18n-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file baka_i18n-0.1.3.tar.gz.

File metadata

  • Download URL: baka_i18n-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for baka_i18n-0.1.3.tar.gz
Algorithm Hash digest
SHA256 029c9c6458abcbde3bcc68f80c0c29500978ef7623aca6cb13181c3111a94510
MD5 acc47d02b10bc3319898128021a3da8b
BLAKE2b-256 f6ddbafc73185422dcfa3bd16b15b60093e0e4fabec8808f17b667be7307b151

See more details on using hashes here.

File details

Details for the file baka_i18n-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for baka_i18n-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc69c2c7eacf236ec008010ca86ef3835a2a4bf47a372722435fab1f5bcef2ac
MD5 5354603b7062f6049761b7dbd0b1c8fd
BLAKE2b-256 c34ce88f88b80650e7276196f10e22a6d5af611d0854878420e053d35e7930ab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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