File: test_if1.tmpl

package info (click to toggle)
libhtml-template-pro-perl 0.9502-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,584 kB
  • ctags: 860
  • sloc: ansic: 1,814; perl: 1,442; yacc: 410; pascal: 118; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<H1> test_if1 </H1>
<tmpl_iF VAR4> <tmpl_var naMe="VAR4"> defined (FALSE)
 (if test 1) </tmpl_if>

<tMpl_iF VAR2> <tmpl_var naMe="VAR2"> defined (TRUE)
 (if test 2) </tmpl_if>

<tmpl_iF VAR1> <tmpl_var naMe="VAR1"> defined (if test 3 level 1)
<tMpl_iF VAR2> <tmpl_var naMe="VAR2"> defined (if test 3 level 2)
<tMpl_iF VAR2> <tmpl_var naMe="VAR2"> defined (if test 3 level 3)
<tMpl_iF VAR4> <tmpl_var naMe="VAR4"> defined (if test 3 level 4 FALSE)
</tmpl_if>
</tmpl_if> </tmpl_if> </tmpl_if>

------------------ <hr>
<tmpl_unLess VAR4> <tmpl_var naMe="VAR4"> defined (TRUE)
 (if test 1) </tmpl_unless>

<tmpl_unLess VAR2> <tmpl_var naMe="VAR2"> defined (FALSE)
 (if test 2) </tmpl_unless>

<tmpl_if VAR1> <tmpl_var naMe="VAR1"> defined (if test 3 level 1)
<tmpl_if VAR2> <tmpl_var naMe="VAR2"> defined (if test 3 level 2)
<tmpl_if VAR2> <tmpl_var naMe="VAR2"> defined (if test 3 level 3)
<tmpl_unless VAR4> <tmpl_var naMe="VAR4"> defined (if test 3 level 4)
</tmpl_unless>
</tmpl_if> </tmpl_if> </tmpl_if>