Changeset 22670


Ignore:
Timestamp:
02/09/10 23:07:42 (17 months ago)
Author:
alex
Message:

Added a header row to a the table example in this recipe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/perl/lib/InterMine/Cookbook/Recipe7.pod

    r22482 r22670  
    131131  use Moose::Role; 
    132132 
    133   requires qw(results_iterator); 
     133  requires qw(results_iterator views); 
    134134 
    135135  sub results_as_html_table { 
     
    138138      die $ri->status_line unless $ri->is_success; 
    139139      my $table_string = '<table>'; 
     140      $table_string .= 
     141        "<tr>". 
     142        join('', map {"<td>$_</td>"} $self->view). 
     143        "</tr>"; 
    140144      while (my $row = $ri->html_row) { 
    141145          $table_string .= $row; 
Note: See TracChangeset for help on using the changeset viewer.