Skip to main content

No project description provided

Project description

Muffin-Jade – Jade template engine for Muffin framework.

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

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

muffin-jade-0.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

muffin_jade-0.0.3-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file muffin-jade-0.0.3.tar.gz.

File metadata

  • Download URL: muffin-jade-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for muffin-jade-0.0.3.tar.gz
Algorithm Hash digest
SHA256 88993f38c4355e4117908db86450d201d76f6611831610875b52be5aba96c8f8
MD5 595575cb49a7d03e7f1cf6fbb3fa72a9
BLAKE2b-256 804362af9cc76baaace976a2de064dd559a5c1b8ebe8b4289e13e182c5ba039e

See more details on using hashes here.

File details

Details for the file muffin_jade-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for muffin_jade-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e72c66429b3787522ab504027659c643d3d3e37392c3b387c1de6fd2a9ec9045
MD5 d0a099b60eb1e2be8981b014979c7496
BLAKE2b-256 cd91f17082eab54e94338be8fea725e7116515f891c343b028eb48e784a3ef02

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