This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Mako renderer for lribeiro.cherrypy.templating

It has two optional config entries:

  • templating.mako.template_directories: can be a path to the templates directory, absolute (with leading slash) or relative to the root module location, or a list of paths. If none is given, {root directory}/templates is used.
  • templating.mako.config: any additional arguments to be passed to the TemplateLookup constructor

Developed under Python3.4 and tested against Python2.7, Python3.4 and pypy.


import cherrypy

from lribeiro.cherrypy.templating import template
from lribeiro.cherrypy.templating.mako import renderer

class Root(object):
    def index(self):
        return {'context': 'variables'}

    def page(self):
        return {'context': 'variables'}

config = {
    '/': {
        'templating.renderer': renderer,
        'templating.mako.template_directories': 'mako_templates',  # optional
        'templating.mako.config': {'module_directory': '/tmp/modules'}  # also optional

if __name__ == '__main__':
    cherrypy.quickstart(Root(), '/', config)
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lribeiro.cherrypy.templating.mako-1.0-py2.py3-none-any.whl (5.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 10, 2014
lribeiro.cherrypy.templating.mako-1.0.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Sep 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting