File: html

package info (click to toggle)
libtemplate-perl 2.19-1.1lenny1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,012 kB
  • ctags: 606
  • sloc: perl: 14,372; makefile: 60; 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 %]