Skip to main content

No project description provided

Project description

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.

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

bottle-jade-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

bottle_jade-0.1.2-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bottle-jade-0.1.2.tar.gz.

File metadata

  • Download URL: bottle-jade-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bottle-jade-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7fe5a9aff16c40c0ab1b728695d3968820b41682da486ebc6985048455931cf6
MD5 11fa5215fd0aa580df39d1977938fb82
BLAKE2b-256 ac7a3df0c17e320fae769d07cc042d7a00b739c38b72b8fb93e23d5e35df5bc5

See more details on using hashes here.

File details

Details for the file bottle_jade-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bottle_jade-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b892ec1b6e39467583f36acaa535d10c1dd9beb0f90be2c401c4903223cbfb06
MD5 54e4116e1534ab9fcd0579aed65e5844
BLAKE2b-256 712729657674ca55d8c9864199b14089c68e78516a27d102b50d8358e7590e85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page