| 1 |
This directory contains a few examples for use of Embperl. |
| 2 |
|
| 3 |
eg/web This directory contains the new Embperl website. |
| 4 |
It uses most of the new possibilites of Embperl 2.0b6+. |
| 5 |
To take a look at it just type "make start" and then |
| 6 |
request http://localhost:8531/eg/web/ . To get it |
| 7 |
working you need to have libxml installed and a |
| 8 |
database called "embperl", which should be setup with |
| 9 |
the script setupdb.pl in eg/webutil. |
| 10 |
Look at eg/web/README for more information and setup |
| 11 |
instructions. |
| 12 |
|
| 13 |
eg/x Here are the following html files |
| 14 |
eg/images Here are the background GIF |
| 15 |
|
| 16 |
if.htm simple html file which shows how you can use the |
| 17 |
if, elsif, else and endif metacommand. |
| 18 |
|
| 19 |
loop.htm simple html file which shows how you can use the while, |
| 20 |
do/until and foreach matacommands to display arrays |
| 21 |
or hashs |
| 22 |
|
| 23 |
table.htm simple html file which shows how to use the dynamic table |
| 24 |
feature |
| 25 |
|
| 26 |
lists.htm shows you how to use dynamic lists and listboxes and |
| 27 |
dropdownboxes |
| 28 |
|
| 29 |
config.htm print out your perl config, like perl -V does |
| 30 |
|
| 31 |
dbi1.htm shows how to fetch data from a database and display them |
| 32 |
into a table using Embperl dynamic tables |
| 33 |
Please read the setup notes in the file itself. |
| 34 |
|
| 35 |
dbi2.htm shows how to fetch data from a database and display them |
| 36 |
into a table using Embperl loop metacommands |
| 37 |
Please read the setup notes in the file itself. |
| 38 |
|
| 39 |
recordset.htm shows how to fetch data from a database using the |
| 40 |
DBIx::Recordset module |
| 41 |
Please read the setup notes in the file itself. |
| 42 |
|
| 43 |
input.htm a input and confirmation form (including error checking), |
| 44 |
which data will be send via mail |
| 45 |
|
| 46 |
formvalidation.htm shows how to use the formvalidation feature new |
| 47 |
in Embperl 2.0b6 |
| 48 |
|
| 49 |
neu.htm this example shows many of the feature of Embperl, as |
| 50 |
embedding various code, conditional processing and form |
| 51 |
management (It's in German but I think it can be understand |
| 52 |
anyway). If called it works like a wizard known from windows |
| 53 |
95 where you can enter data on some consecutive pages and walk |
| 54 |
forward or back at everytime preserving the input made so far. |
| 55 |
Note that the database interface is missing from this example. |
| 56 |
|
| 57 |
Execute.pl This is an perl script which shows how to use the function |
| 58 |
HTML::Embperl::Execute. It runs under Apache::Registry or |
| 59 |
offline. |
| 60 |
|
| 61 |
upload.htm Shows how to do a file upload with Embperl |
| 62 |
|
| 63 |
You can also look at the directory test/html. The files found here |
| 64 |
will transformed to the files found in test/cmp, the request for that can |
| 65 |
be found at the beginning of test.pl. |
| 66 |
NOTE: Files in test/html are tests, some things don't make sense for real usage |
| 67 |
|