/[Frey]/trunk/lib/Frey/HTML.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/HTML.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26 by dpavlin, Sun Jun 29 18:08:50 2008 UTC revision 27 by dpavlin, Sun Jun 29 20:11:27 2008 UTC
# Line 75  Wrap template into html page Line 75  Wrap template into html page
75    
76  sub page {  sub page {
77          my $self = shift;          my $self = shift;
78          warn "## page $_[0]\n";          warn "## page ",dump($_[0],ref($_[1]),$_[2]),"\n";
79          my $page = eval { Template::Declare->show( @_ ) };          my $page = eval { Template::Declare->show( @_ ) };
80          if ( $@ ) {          if ( $@ ) {
81                  carp "ERROR: $@";                  carp "ERROR: $@";
82                  $page = Template::Declare->show( 'error', $@ );                  $page = Template::Declare->show( 'error', $_[1], "page" . dump($_[0], ref($_[1])) . "\n$@" );
83                    warn $page;
84          }          }
85          return $page;          return $page;
86  }  }

Legend:
Removed from v.26  
changed lines
  Added in v.27

  ViewVC Help
Powered by ViewVC 1.1.26