from tg import expose
from pyforge.app import Application
class App(Application):
def __init__(self, config):
self.config = config
self.root = RootController(config['message'])
class RootController(object):
def __init__(self, message):
self.message = message
@expose('helloforge.templates.index')
def index(self):
return dict(message=self.message)