Skip to main content

Bottle Jade

Bottle Jade – Short description.

Build Status Coverals http://img.shields.io/pypi/v/bottle-jade.svg?style=flat-square http://img.shields.io/pypi/dm/bottle-jade.svg?style=flat-square Donate

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.

Metadata

Release files for bottle-jade 0.2.1

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

Source distribution (sdist)

Source distribution for bottle-jade 0.2.1
File Size Uploaded
bottle-jade-0.2.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bottle-jade 0.2.1
File Interpreter ABI Platform
bottle_jade-0.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.6 kB

Release files / bottle-jade-0.2.1.tar.gz

Download URL bottle-jade-0.2.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8daafee1108368b25a23ff0a4961e60f946b6c6036865a007a82d35fee83bb72
BLAKE2b-256 checksum
How to use checksums
275b0436e26e19ffe5bcc441ea1655648078636c024e930121930a1cfafcdef1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bottle_jade-0.2.1-py2.py3-none-any.whl

Download URL bottle_jade-0.2.1-py2.py3-none-any.whl
Size 5.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8348b98d520c04a5bdc92512235449ef4438685e71e5de8d8484a358f8b0bbf6
BLAKE2b-256 checksum
How to use checksums
aa59f38f80397b034d3cea11f1072056cb75d2a78f6e9faa9d1971a1f3641475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

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