No project description provided
Project description
Muffin-Jade – Jade template engine for Muffin framework.
Requirements
python >= 3.3
Installation
Muffin-Jade should be installed using pip:
pip install muffin-jade
Usage
Add muffin_jade to PLUGINS in your Muffin Application configuration.
Options
JADE_CACHE_SIZE – Cache size for compiled templates (100)
JADE_ENCODING – Templates’ encoding (UTF-8)
JADE_PRETTY – Pretty output (True)
JADE_TEMPLATE_FOLDER – Path to base template folder (templates)
Views
# Register custom context provider # could be a coroutine @app.ps.jade.ctx_provider def custom_context(): return { 'VAR': 'VALUE' } @app.register('/') def index(request): """ Check for user is admin. """ context = {} return app.ps.jade.render('index.jade', **context)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-jade/issues
Contributing
Development of Muffin-Jade happens at: https://github.com/klen/muffin-jade
Contributors
klen (Kirill Klenov)
License
Licensed under a MIT license.
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
Built Distribution
File details
Details for the file muffin-jade-0.0.2.tar.gz
.
File metadata
- Download URL: muffin-jade-0.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46fca8f5dabaf3f15f7b65e5b4b807ab6340fcfca619e8c1db020fccba3542e |
|
MD5 | 5ebfa2b59b4b02a8f0bc9298f78297a7 |
|
BLAKE2b-256 | 41dfc63acdb9cc7714860029db4ee6bb61d1658127be99d30c567f70ab20c6b6 |
File details
Details for the file muffin_jade-0.0.2-cp34-cp34m-macosx_10_10_x86_64.whl
.
File metadata
- Download URL: muffin_jade-0.0.2-cp34-cp34m-macosx_10_10_x86_64.whl
- Upload date:
- Size: 4.0 kB
- Tags: CPython 3.4m, macOS 10.10+ x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bbc3b0d080a09d5bd2d989827a79e32153de7f3240d60a6fab4335c367ff535 |
|
MD5 | 06b6675b3588a0895da1fe63b89604b5 |
|
BLAKE2b-256 | 2d5b3514a6f59fe3b1f1c5c3e94419a79d7a9bd291d8ca168ff0a3b794775361 |