Re: Different url's same actions...

Jonathan Swartz <[email protected]> Mon, 8 Oct 2012 22:54:08 -0700
Newsgroups gmane.comp.web.mason.user
Message-ID <[email protected]>
On Sep 28, 2012, at 11:42 AM, T.Lawrance wrote:

> 
> There are other examples of how to do internationalization on the Mason
> book and Mason HQ sites.
> 
> Yes, for HTML::Mason, like the suggested <%shared> blocks.
> 
> Thank you anyway for suggestions, I'll thinking about how to implement it in Mason2.
> 
> But, I have some internal "feeling" that this should be done "somewhat" before Mason take controll, like at some Middleware level (urlrewrite?) or using Mason::Plugin::RouterSimple or like...

You could try a Plack middleware, like

   https://metacpan.org/module/Plack::Middleware::Rewrite

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users