No project description provided
Project description
Bottle Jade – Short description.
Contents
Requirements
- python >= 2.6
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size bottle_jade-0.2.1-py2.py3-none-any.whl (5.7 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size bottle-jade-0.2.1.tar.gz (4.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for bottle_jade-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8348b98d520c04a5bdc92512235449ef4438685e71e5de8d8484a358f8b0bbf6 |
|
MD5 | f7d1d10f7bebb1f708b2ff887ed56f93 |
|
BLAKE2-256 | aa59f38f80397b034d3cea11f1072056cb75d2a78f6e9faa9d1971a1f3641475 |