PDA

View Full Version : publish-time conditionals in mod_perl/Mason?


bryndyment
04-25-2003, 11:40 PM
I'm using mod_perl/Mason. I have a page with, say, six IF BROWSER conditionals. Rather than have all six of these conditionals evaluated with each page request, I'd like to "publish" two versions of the page (e.g., "ie/page.htm" and "netscape/page.htm"), then have Apache redirect to the right page based upon the browser type.

(This is just an example... my real question is "what's the best way generate pages at publish time, based upon a conditional embedded in the page?")