Switch to side-by-side view
--- a +++ b/HelloForge/helloforge/main.py @@ -0,0 +1,21 @@ +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) + + +