• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/Template-Toolkit/lib/Template/Plugin/

Lines Matching +refs:org +refs:table

6 #   Plugin to order a linear data set into a virtual 2-dimensional table
10 # Andy Wardley <abw@wardley.org>
36 # It calculates the shape of the permutation table based on the ROWS
51 return $class->error("iterator failed to provide data for table: ",
56 return $class->error('invalid table data, expecting a list')
60 return $class->error('invalid table parameters, expecting a hash')
218 return (undef, "no such table method: $item");
230 Template::Plugin::Table - Plugin to present data in a table
234 [% USE table(list, rows=n, cols=n, overlap=n, pad=0) %]
236 [% FOREACH item IN table.row(n) %]
240 [% FOREACH item IN table.col(n) %]
244 [% FOREACH row IN table.rows %]
250 [% FOREACH col IN table.cols %]
257 virtual table. When you create a C<Table> plugin via the C<USE> directive,
262 [% USE table(list, cols=5) %]
268 [% USE mydata = table(list, rows=5) %]
270 The plugin then presents a table based view on the data set. The data
273 table of C<n> rows x C<n> columns.
279 [% USE table(alphabet, ... %]
292 [% USE table(alphabet, rows=5) %]
293 [% FOREACH item = table.row(0) %]
297 [% FOREACH item = table.col(2) %]
311 [% FOREACH item = table.row(4) %]
320 [% USE table(alphabet, cols=5, pad=0) %]
321 [% FOREACH item = table.col(4) %]
325 The C<rows()> method returns all rows/columns in the table as a reference
328 the table.
332 [% USE table(alphabet, cols=5) %]
333 [% FOREACH row = table.rows %]
344 [% USE table(alphabet, cols=3, pad=0) %]
345 [% FOREACH group = table.col %]
358 [% USE table(alphabet, cols=5) %]
359 [% FOREACH row = table.rows %]
363 Data in the table is ordered downwards rather than across but can easily
384 [% USE table(alphabet, rows=3) %]
385 [% FOREACH cols = table.cols %]
411 [% USE table(results, rows=8 overlap=1 pad=0) -%]
413 [% FOREACH row = table.cols -%]
420 Andy Wardley E<lt>abw@wardley.orgE<gt> L<http://wardley.org/>