No project description provided
Project description
Bottle Jade – Short description.
Requirements
python >= 2.6
Installation
Bottle Jade should be installed using pip:
pip install bottle-jade
Usage
from bottle import Bottle from bottle_jade import JadePlugin from os import path as op app = Bottle() templates = op.dirname(op.abspath(__file__)) jade = app.install(JadePlugin(template_folder=templates)) @app.route('/') def index(): context = {'var': 'value'} return jade.render('index.jade', **context) @app.route('/simple') @jade.view('simple.jade') def simple(): context = {} return context
Configuration
JADE_CACHE_SIZE – Number of templates which will be cached (200) JADE_PRETTY – Enable pretty output (True) JADE_TEMPLATE_FOLDER – Set path to templates folder (templates) JADE_ENCODING – Set templates’ encoding (UTF-8)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle-jade/issues
Contributing
Development of Bottle Jade happens at: https://github.com/klen/bottle-jade
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD 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 bottle-jade-0.1.1.tar.gz
.
File metadata
- Download URL: bottle-jade-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb7e07f225062574387270d0deae962f7668d22eb4ba3b5c3cbbaab4bfc2038 |
|
MD5 | 08ea11c39c30816dfca27942f082465f |
|
BLAKE2b-256 | 4fcd262f4b0e81985d9d20249f5efb1ebfdfb5d97c853dfd96481cd069d2f199 |
File details
Details for the file bottle_jade-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_jade-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7abcf11fa45be0694105b1826ba2be5811cb70a5c0d4beb74f1d137c247980 |
|
MD5 | 602ca406dc66e0bad1b5b0a0002b1978 |
|
BLAKE2b-256 | 165422eb1f6e3f9ba80f205c3fb0b4eea9caae900797879535b0398eb1c05965 |