Skip to main content

UNKNOWN

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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

muffin_jade-0.0.1-cp34-cp34m-macosx_10_10_x86_64.whl (4.0 kB view details)

Uploaded CPython 3.4m macOS 10.10+ x86-64

File details

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

File metadata

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

File hashes

Hashes for muffin-jade-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3a90deff6153c47a85064846d93073a93aac0dc64aca1ed2857ee89fd4dfaed3
MD5 67aa1795332882b82c5db28776bda2f0
BLAKE2b-256 ed0b9cd93889a9d75667c286620b221a328668118a785b8f5ad115d039c0cb90

See more details on using hashes here.

File details

Details for the file muffin_jade-0.0.1-cp34-cp34m-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for muffin_jade-0.0.1-cp34-cp34m-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 041c93a7633913c38b01f67f551c584307b60d18259a1e47ae370e58e7b7d475
MD5 9db063dabb890651b38fd6c453b510e7
BLAKE2b-256 1883ca02dbab66061a3fefd720e38d28d733c37b052561bc696540e453a4ad6a

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