File: vsplit3

package info (click to toggle)
libtemplate-perl 2.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 5,496 kB
  • ctags: 667
  • sloc: perl: 15,349; makefile: 62; xml: 7; sh: 5
file content (23 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[%  THROW   examples 'library is not defined' UNLESS library ;
    THROW   examples 'section is not defined' UNLESS section ; 
    DEFAULT count = 0  from = 1  to = count;
    SET     dir   = "examples/$library.name/$section" ;
%]

<table border=0 width="100%">
[%  FOREACH n = [ from..to ];
	WRAPPER html/row;
	    PROCESS example/source
		file="$dir/$n";
	END;
	WRAPPER html/row;
	    INCLUDE example/html;
	END;
	WRAPPER html/row;
	    INCLUDE example/output;
	END;
	INCLUDE example/break colspan=2 UNLESS loop.last;
    END
%]
</table>