Re: [htmltmpl] Variable in TMPL_INCLUDE
Brought to you by:
samtregar
From: Jason Y. <ja...@co...> - 2004-04-05 17:45:13
|
Puneet Kishor wrote: > I thought this problem was solved with judicious use of filters. There > are enough posts on this in the archives. Am I missing something here? > Or are folks simply averse to using filters? In my case, I pull a id from a database and then load the template with that id. For instance, I'll pull id 5 and the template will be named 5.tmpl. There is no ability with filters to pass that id to the filter function. So in my case, I'd have to create another CGI object grab relevents paramaters, load the DBI object reconnect to the database, and query the database for the id. Filters just won't work well for what I'm trying to do. Especially if there are a number of includes, the above process could be run 4-5 times. It would be extremely slow. |