[Catalyst] Branding - or path prefix
Wade.Stuart at fallon.com
Wade.Stuart at fallon.com
Mon Aug 1 14:49:52 CEST 2005
Why not do branding with the domain name portion and/or store the style
type in the session stash?
-Wade
Bill Moseley
<moseley at hank.org
> To
Sent by: catalyst at lists.rawmode.org
catalyst-bounces@ cc
lists.rawmode.org
Subject
[Catalyst] Branding - or path
07/30/05 12:35 AM prefix
Please respond to
The elegant MVC
web framework
<catalyst at lists.r
awmode.org>
Here's something else related to URL mapping I've been wondering
about. On some sites in the past I've had the need to prefix all
paths with something that effects the entire application.
Examples might be for co-branding, providing a sub-selection of data
from the site, or simply prepending a template path to the normal
template search path.
So, a "normal" url might look like:
http://localhost/some/path/to/action
and instead prefix with "blue":
http://localhost/blue/some/path/to/action
Catalyst's controllers would work exactly the same, but the view
would know to unshift $root/templates/blue onto the template include
path.
I've done this kind of thing in the past with a mod_perl
PerlTransHandler, but I'm wondering if there's a way to handle this
in Catalyst.
--
Bill Moseley
moseley at hank.org
_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list