On Fri, 2003-07-25 at 18:32, Christopher L. Everett wrote:
> I wish to reuse various templates in toto between different URLs but
> have different
> means of providing the information I fill the template with depending
> on the uri.
>
> So far, I've tried using TT2PluginBase and TT2ServiceModule directives
> inside
> Location blocks inside my apache configuration file.
Well, here's a silly question: why are you using Apache::Template? I
think it would be much easier to just write an apache handler and have
it call Template than to try and bend Apache::Template into what you
want.
In general, people use Apache::Template when they plan to have simple
templates that do things with plugins. The service module idea exists,
but I doubt many people use it.
If you really want to stick with Apache::Template, write a service
module that looks at the URI and chooses some setup code to run.
- Perrin
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|