[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] ::TT ::AnyTemplate and ::TemplateRunner template file name discovery



  -----------------------------------------------

 TemplateRunner will use the URL, so: myapp.cgi/really/rocks.html
 Becomes:
     really/rocks.html

Let me promote TemplateRunner a little more:

myapp.cgi/bbs/1234.html

can also become

bbs/_default.html

where the "1234" is made available to both the template and the associated data file.

This system helps you to get rid of a lot of CGI parameters, and you can use shorter, simpler, relative URLs, for example href='?page=2' would work basically everywhere you need paging without any extra params to specify what list is being paged here.

 But the strength could also be a weakness if minor URL tampering
causes the template not be found.

Well, minor URL tampering results in 404 errors on most web sites anyway ...


Thilo

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.