Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Finding the dirpath of a template (Template::Toolkit)

by alien_life_form (Pilgrim)
on Jan 23, 2004 at 17:26 UTC ( [id://323623]=note: print w/replies, xml ) Need Help??


in reply to Finding the dirpath of a template (Template::Toolkit)

Greetings,

I did some more research and it looks the problem is thornier then I thought.

A code similar to this (which is also discussed in Dynamically altering static TT templates - by Ovid) would appear to cut it, but I am loathe to use such hackery - chiefly inside an Apache::registry script.

component.name does not cut it, by the way.In the end, every path that I'v been able to squeeze out of the template, filters and plugins refers to the script dir (not the template), or it's relative to the template dir

And yet the task I need to do looks mundane enough that somebody would have needed it... (the task, put briefly, is - get a list of template filenames, find the best match with a given dynamic rule, include the selected template)

I will heed merlyn's advice and go to the TT2 list, but it looks pretty hopeless so far.


Cheers,
alf
You can't have everything: where would you put it?
  • Comment on Re: Finding the dirpath of a template (Template::Toolkit)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://323623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-24 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found