Re: [htmltmpl] how to determine if tmpl_var exists in a loop?
Brought to you by:
samtregar
From: <al...@lo...> - 2004-04-17 19:31:34
|
Hello Puneet. Slightly off topic but useful for making templating easy and not looking = like a cgi. Puneet said: >In effect, the users are not going to index.cgi?do=3Dsomecrap, but they = are=20 >going to /website/somecrap. So you can use path_info, but how are you=20 >getting the cgi to fire up? Its easy if you have control over your server. make a soft link to your cgi directory and call it something related to = your app /cgi-bin/information.cgi?do=3Dparameters becomes /mortgage/information/parameters This doesn't work for all servers. I have a shared one that won't let me do that, so I had to have an = extension. but you can do this differently by making up a new filename extension = and making it act like a cgi In this case, Mortgage_Rate.html is a parameter, not a file, but it = looks like a file. http://marketside.com/mortgage/mortgage.cgi/Mortgage_Rate.html On another server that I control, I can change mortgage.cgi to just = mortgage. On this one I could have made the extension .info act like a cgi and = then I could have used http://marketside.com/mortgage/mortgage.info/Mortgage_Rate.html - but by the time I realised that, it was in all the search engines. And this makes it easy to use Templates but not make it too obvious. Alan. |