Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Mako tool for cherrypy

Project description

CherrypyMako is a cherrypy plugin that provides Mako template engine , within cherrypy as a tool.


import os.path
import cherrypy
import CherrypyMako
import datetime
root_dir = os.path.abspath( os.path.dirname(__file__))

class Root(object):

    def index(self):
        return {'currentTime'}

        'server.socket_host'  : '',
        'server.socket_port'  : 1919,
        'tools.mako.directories' : [os.path.join(root_dir,'templates')],

if __name__ == '__main__':
    cherrypy.quickstart(Root(), '', config=_cp_config)


                <title>Cherrypy Mako Tool Demo</title>

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
CherrypyMako-0.3.1-py2.7.egg (4.1 kB) Copy SHA256 hash SHA256 Egg 2.7 Dec 24, 2012
CherrypyMako-0.3.1.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Dec 24, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page