File: table

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 (16 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[%# table: an empty HTML table <table> . . . </table>
  # ARGS:
  #     border      # border width (default: 0)
  #	col	    # background colour (default: none)
  #     width       # width of box (default: none, grow to fit content) 
  #     pad         # cellpadding (default: none)
  #     space       # cellspacing (default: none)
  #     content     # box content
-%]
<table border="[% border or 0 %]"
       [%- IF col %] bgcolor="[% col %]"[% END %]
       [%- IF width %] width="[% width %]"[% END %]
       [%- IF pad.defined %] cellpadding="[% pad %]"[% END %]
       [%- IF space.defined %] cellspacing="[% space %]"[% END %]>
[%- content -%]
</table>