Instead of using something like config.add_route('Index', '/') in my main, 
I want to add a route as a decorator which will be positioned next to the 
relevant view. Something like

@view_addRoute(route'="/index")
@view_config(route_name='Index', renderer='MyApp:html/compiled/index.mako')
    class Index(SimpleObject):
        def __call__(self):

        return {'project':'MyApp'}


How can I do this?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/C3l0ZR8r1mIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to