Re: Generated javascript from .pl files
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Wed, 08 Aug 2007 21:13:18 +0200
Bart Van der Donck wrote:
Thomas 'PointedEars' Lahn wrote:
Bart Van der Donck wrote:
Thomas 'PointedEars' Lahn wrote:In its most simple form,
And the only thing that you would need to change over time is theCould you show the relevant httpd.conf lines how you would achieve
server configuration that says how .suffix (here .pl) is to be
handled.
this ?
Options +MultiViews
I see. I wasn't aware of that technique.
Now come on, how many times have I written "Content Negotiation" already?
But I doubt it's the best here.
If you deem a technique to be not the best as a solution to a problem, you
would have to come up with an alternative that is objectively a better one,
i.e. has a considerable benefit over the former, or such a statement stands
and falls with your credibility among your readers.
I have been using Content Negotiation for years now. It works just fine,
even with Apache 1.x; it gives me little to no headache, and the performance
loss for the additional lookup really is insignificant. For example, do you
think I am updating the date of modification in [1] *manually* or that there
even exists an "es-matrix" directory? Do you think that I am using any
programming to determine what translation should be used automatically
according to the users preferences in [2]? I could go on, but it would be
better if you read the (Apache) docs on how CN automagically can work for you.
[1] http://pointedears.de/scripts/es-matrix
[2] http://pointedears.de/scripts/test/whatami
For the OP's question, I would still councel to use
AddHandler cgi-script .js
in a specific directory holding his perl-generated javascript files.
That would impose an unnecessary restriction, where
AddHandler cgi-script .pl
Options +MultiView
would not. So in what way would the former be better, please?
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.
- Follow-Ups:
- Re: Generated javascript from .pl files
- From: Bart Van der Donck
- Re: Generated javascript from .pl files
- References:
- Generated javascript from .pl files
- From: TonyV
- Re: Generated javascript from .pl files
- From: TonyV
- Re: Generated javascript from .pl files
- From: Thomas 'PointedEars' Lahn
- Re: Generated javascript from .pl files
- From: Bart Van der Donck
- Re: Generated javascript from .pl files
- From: Thomas 'PointedEars' Lahn
- Re: Generated javascript from .pl files
- From: Bart Van der Donck
- Generated javascript from .pl files
- Prev by Date: Re: Download file with current date in filename
- Next by Date: Re: has no properties error
- Previous by thread: Re: Generated javascript from .pl files
- Next by thread: Re: Generated javascript from .pl files
- Index(es):
Relevant Pages
|
|