File: html

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 (14 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[% DEFAULT htmlout_prefix = "HTML Output" -%]
[% USE wrap -%]
[% WRAPPER html/cell %]
    <b>[% htmlout_prefix %] #[% n %]:</b>
    <ul>
    <pre>[% INCLUDE $file 
	    | replace('\n+', "\n")	    # collapse empty lines
	    | wrap(80)			    # wrap text
            | html			    # escape HTML
	    | replace('&lt;!--', '<b>&lt;!--')
	    | replace('--&gt;', '--&gt;</b>')
    %]</pre>
    </ul>
[% END %]