Child: [997c6a] (diff)

Download this file

main.py    22 lines (12 with data), 427 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
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)