Skip to main content

Mako template support for cherrypy.

Project description

Mako template support for cherrypy.


pip install marbaloo_mako


# templates/dir1/index.mak
<h1>Today: ${today}</h1>
import os
import marbaloo_mako
import cherrypy
from datetime import date = marbaloo_mako.Tool()

class Root(object):
    def simple(self):
        return  {'today':}

root_path = os.path.dirname(__file__)
cherrypy.quickstart(Root(), '/', {
                            '/': {
                                'tools.mako.on': True,
                                'tools.mako.directories': [os.path.join(root_path, 'templates/dir1')]

Project details

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
marbaloo_mako-0.1.1.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

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