/[Frey]/trunk/lib/View.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/View.pm

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

revision 9 by dpavlin, Sat Jun 28 18:45:00 2008 UTC revision 10 by dpavlin, Sat Jun 28 22:13:05 2008 UTC
# Line 8  use base 'Template::Declare'; Line 8  use base 'Template::Declare';
8    
9  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
10    
 use Strix::User;  
 my $user = Strix::User->new( id => 1 );  
   
11  template user => sub {  template user => sub {
12          html {          my ( $self, $user ) = @_;
13                  head {}          p {'Hello, world wide web!'}
14                  body {          pre {
15                          p {'Hello, world wide web!'}                  outs( dump( $user ) );
                         pre {  
                                 outs( dump( $user ) );  
                         }  
                 }  
16          }          }
17  };  };
18    

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26