-
Notifications
You must be signed in to change notification settings - Fork 12
/
ex4.xtpl
executable file
·46 lines (41 loc) · 1.35 KB
/
ex4.xtpl
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!-- BEGIN: main -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="Co-Comp Ltd" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>example 4</title>
</head>
<!-- $HeadURL: https://xtpl.svn.sourceforge.net/svnroot/xtpl/trunk/ex4.xtpl $
$Id: ex4.xtpl 16 2007-01-11 03:02:49Z cocomp $ -->
<body>
<p>Recursive parsing test.<br />
you can parse entire blocks+subblocks using rparse().<br />
<span style="color: red;">note:</span> this will parse every subblock recursively inside the block you specified.<br /><br />
here comes the test [ rparse("main") ]: ===><br /><br />
<!-- BEGIN: block1 -->
this is block 1.<br />
<!-- BEGIN: subblock1 -->
this is subblock 1.1<br />
<!-- END: subblock1 -->
<!-- BEGIN: subblock2 -->
this is block 1.2<br />
<!-- END: subblock2 -->
<!-- END: block1 -->
<!-- BEGIN: block2 -->
this is block 2.<br />
<!-- BEGIN: subblock1 -->
this is subblock 2.1<br />
<!-- END: subblock1 -->
<!-- BEGIN: subblock2 -->
this is block 2.2<br />
<!-- END: subblock2 -->
<!-- END: block2 -->
<!-- BEGIN: block3 -->
this is block 3.<br />
<!-- END: block3 -->
</p>
</body>
</html>
<!-- END: main -->