Пример #1
0
# -*-coding=utf8-*-
from torngas.helpers.route_helper import url, RouteLoader

route = RouteLoader(path='/')

urls = route.urlhelper('Main.views',
    url('Index', r'/', 'main_handler.Main')
)

if __name__ == '__main__':
    pass
Пример #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from torngas.helpers.route_helper import url, RouteLoader

route = RouteLoader(path='/')

urls = route.urlhelper('helloworld.views',
                       #也可以传递对象
                       url('Index', r'/', 'main_handler.Main')
)

if __name__ == '__main__':
    pass
Пример #3
0
#-*-coding=utf8-*-
from torngas.helpers.route_helper import url, RouteLoader

route = RouteLoader(path_prefix='Main.views', path='/', app_folder='Main')

urls = route.urlhelper(
    url('Index', r'/', 'view=main_handler,handler=Main')
)
Пример #4
0
#-*-coding=utf8-*-
from torngas.helpers.route_helper import url, RouteLoader

route = RouteLoader(path_prefix='Main.views', path='/', app_name='Main')

urls = route.urlhelper(url('Index', r'/', 'view=main_handler,handler=Main'))
Пример #5
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from torngas.helpers.route_helper import url, RouteLoader

route = RouteLoader(path='/')

urls = route.urlhelper(
    'helloworld.views',
    #也可以传递对象
    url('Index', r'/', 'main_handler.Main'))

if __name__ == '__main__':
    pass
Пример #6
0
# -*-coding=utf8-*-
from torngas.helpers.route_helper import url, RouteLoader
from . import SUBAPP_NAME
route = RouteLoader(path='/', subapp_name='Main')

urls = route.urlhelper(
    url('Index', r'/', 'views.main_handler.Main')
)

if __name__ == '__main__':
    pass