Debian Codegraph @

test/html/var.htm

raw
1
2 <html>
3 <head>
4 <title>Some Plain tests for Embperl</title>
5 </head>
6
7 <body>
8
9 [$VAR $a $b $c $d $e $]
10
11 Here it starts with some HTML Text<P>
12
13
14 All values should be undefined:
15
16 $a = [+ $a || '' +] <BR>
17 $b = [+ $b || '' +] <BR>
18 $c = [+ $c || '' +] <BR>
19 $d = [+ $d || '' +] <BR>
20 $e = [+ $e || '' +] <BR>
21
22
23 First of all assign a value:
24 [- $a = '(this is the value in $a)' -] <BR>
25
26 Now we have some 'Umlaute':
27
28
29 [- $b = "$a &auml;&ouml;&uuml;" -]
30
31 Now lets look what we are getting from this:<BR>
32 [+ $a +] [+ $b +]<BR>
33
34 And now a and b together: [+ "$a$b" +]<P>
35
36 Here we have some HTML tags within the perl code, Embperl will delete them!<BR>
37
38 [+ $c = <BR> 6 + 17 <font size="3"> * 3 +]
39
40 Embperl will also translate HMTL escapes to the right characters i.e. $a &amp;lt; 6 will get the perl expression $a &lt; 6: <BR>
41
42 [- $e = 2 -]
43 [+ $d = $e &lt; 6 +]
44
45 Now they should have a value
46
47 $a = [+ $a +] <BR>
48 $b = [+ $b +] <BR>
49 $c = [+ $c +] <BR>
50 $d = [+ $d +] <BR>
51 $e = [+ $e +] <BR>
52
53 <P>Ok.<P>
54
55 [#
56 This is an Embperl comment
57 it will totaly removed from the html source
58 #]
59
60 [# [+ "blabla" +] it will also hide perl code #]
61
62 </body>
63 </html>