Groups
Groups
Sign in
Groups
Groups
pylons-devel
Conversations
About
Send feedback
Help
routing syntax is a bit weird
29 views
Skip to first unread message
Jonathan Vanasco
unread,
Feb 13, 2013, 8:11:06 PM
2/13/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-devel
just an observation....
i had an issue with route matching, due to my error of not having a
proper regex in the route
/archive/{yyyy}/{mm}/{dd}/{slug}
was quickly fixed with:
/archive/{yyyy:\d{4}}/{mm:\d{2}}/{dd:\d{2}}/{slug}
does anyone else think that this syntax is weird? shouldn't the
grouping brackets have been different than regex brackets, since regex
can be used to better specify routes ? ( or even just used a real
regex on the route ? )
Reply all
Reply to author
Forward
0 new messages