summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2008-05-06 01:15:46 +0000
committerivan <ivan>2008-05-06 01:15:46 +0000
commitbb51c09147a727688b6cd49e8838b9219ff25d43 (patch)
treeec055907785107b3388f4ac307814ee5663e8807 /httemplate
parent5beea6929acac0c1d0270fae961b3da87f6f8cdc (diff)
put the documentation in a proper <%doc> section
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/customer-table.html32
1 files changed, 20 insertions, 12 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index fc298b0..779b01c 100644
--- a/httemplate/elements/customer-table.html
+++ b/httemplate/elements/customer-table.html
@@ -1,15 +1,23 @@
-% # options example...
-% #
-% # #listrefs...
-% # 'header' => [ '#', 'Item' ],
-% # 'fields' => [
-% # 'column',
-% # sub { my ($row,$param) = @_; $param->{"column$row"}; },
-% # ],
-% # 'sizes' => [], # sizes ignored for immutable
-% # 'types' => ['immutable', ''], # immutable or ''/text
-% # 'param' => { column0 => 1 }, # preset column of row 0 to 1
-% #
+<%doc>
+
+Example:
+
+ include( '/elements/customer-table.html',
+
+ #listrefs...
+ 'header' => [ '#', 'Item' ],
+ 'fields' => [
+ 'column',
+ sub { my ($row,$param) = @_;
+ $param->{"column$row"};
+ },
+ ],
+ 'sizes' => [], # sizes ignored for immutable
+ 'types' => ['immutable', ''], # immutable or ''/text
+ 'param' => { column0 => 1 }, # preset column of row 0 to 1
+ )
+
+</%doc>
<SCRIPT TYPE="text/javascript">