routing syntax is a bit weird

29 views
Skip to first unread message

Jonathan Vanasco

unread,
Feb 13, 2013, 8:11:06 PM2/13/13
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