Hello,
We encountered a problem using "route" syntax in Mason2 components for
non-standard path (at least I haven't found such example). We want to catch
URLs that follow this pattern:

site/news
site/news/1
site/news/2
site/news/n

So we made a component site/news.mc:

<%class>
   route "";  // match empty path_info
   route "news/{page:[0-9]+}"  // match page num
</%class>

But this fails with:

missing pattern at /usr/local/share/perl5/Router/Simple.pm line 17.
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to