On Sun, Sep 1, 2013 at 9:40 PM, Roberto Guerra <[email protected]> wrote:
> For example, class-based views, I still don't grok it. If you are
> coming from Rails, for example, you can have multiple routes inside a 'class
> view', but in Pyramid it appears that you can only have one route per class
> view.
You can have multiple routes per view like this:
class View(object):
@view_config(route_name="route1", renderer="template1"))
@view_config(route_name="route2", renderer="template2")
def index(self):
return {}
@view_config(route_name="route3", renderer="template3")
def help(self):
return {...}
If that's not what you mean by "multiple routes inside a class view",
then I don't understand the question.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.