From bb51c09147a727688b6cd49e8838b9219ff25d43 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 6 May 2008 01:15:46 +0000 Subject: [PATCH] put the documentation in a proper <%doc> section --- httemplate/elements/customer-table.html | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index fc298b03e..779b01c51 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 + ) + +