diff options
Diffstat (limited to 'packages/torouter-web/src/view.py')
-rw-r--r-- | packages/torouter-web/src/view.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/torouter-web/src/view.py b/packages/torouter-web/src/view.py new file mode 100644 index 0000000..f4c9b39 --- /dev/null +++ b/packages/torouter-web/src/view.py @@ -0,0 +1,11 @@ +import web +import config + +t_globals = dict( + datestr=web.datestr, + ) + +# create the render object +render = web.template.render('tui/views', cache=config.cache, globals=t_globals) +render._keywords['globals']['render'] = render + |