/[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 2 by dpavlin, Sat Jun 28 11:49:35 2008 UTC revision 14 by dpavlin, Sun Jun 29 00:36:08 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( nick => 'dpavlin' );  
   
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!'}                  { class is 'debug' };
16                          pre {                  outs( dump( $user ) );
                                 outs dump( $user );  
                         }  
                 }  
17          }          }
18  };  };
19    

Legend:
Removed from v.2  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26