skip to navigation
skip to content

CherrypyMako 0.3.1

Mako tool for cherrypy

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>
File Type Py Version Uploaded on Size
CherrypyMako-0.3.1-py2.7.egg (md5, pgp) Python Egg 2.7 2012-12-24 4KB
CherrypyMako-0.3.1.tar.gz (md5, pgp) Source 2012-12-24 2KB