Source

pythonhk / src / pythonhk / controllers.py

Full commit
from cherrypy._cperror import HTTPRedirect
try:
    import simplejson as json
except ImportError:
    import json

import cherrypy

import pythonhk
from pythonhk import api


class Root(object):

    @cherrypy.expose
    def index(self):
        template = pythonhk.template_loader.get_template("index.html")
        return template.render()