fpweb examples on how to use fcl-web with templates and template tags
Original Reporter info from Mantis: bobo
-
Reporter name: Attila Borka
Original Reporter info from Mantis: bobo
- Reporter name: Attila Borka
Description:
These examples are demonstrating some uses of templates (with FPTemplate) when
generating HTML pages by CGI programs or Apache modules using fcl-web (fpweb).
A lot of people were asking on the forums and mailing lists about some kind of documentation and/or examples on the use of these.
I suggest to add these examples under \Lazarus\examples\fpweb\ or something similar.
Additional information:
Examples list:
-
/simpletemplate/*.*
The simplest template with one template tag in it to be replaced by the
CGI/Apache application when generating the response page -> {TagName1} -
/tagparam/*.*
Demonstrating the set up and use of template tag parameter(s)
-> DATETIME FORMAT=MM/DD hh:mm:ss -
/listrecords/*.*
Demonstrates the use of a template tag with multiple template tag parameters
to list multiple records, tables, lists, etc. -
/fileupload/*.*
Demonstrates uploading file(s) to a web server with the help of a CGI program
or Apache module by using so called "multipart" html forms.
See README.txt
-
/sessions/.
These examples demonstrate three different ways to maintain and use sessions
when building web sites that need to carry over or store information to
following web pages, differentiate between visitors, etc.
5.a. /sessions/cookiesessions-auto/.
5.b. /sessions/cookiesessions-login/.
5.c. /sessions/urlsessions-login/.
Mantis conversion info:
- Mantis ID: 13706
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20345 (#da1981f7)
- Target version: 0.9.28