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

Annotation of /trunk/lib/Frey/View.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (hide annotations)
Sat Jun 28 18:45:00 2008 UTC (15 years, 10 months ago) by dpavlin
Original Path: trunk/lib/View.pm
File size: 344 byte(s)
load model by primary key
1 dpavlin 2 package View;
2    
3     use strict;
4     use warnings;
5    
6     use Template::Declare::Tags; # defaults to 'HTML'
7     use base 'Template::Declare';
8    
9     use Data::Dump qw/dump/;
10    
11     use Strix::User;
12 dpavlin 8 my $user = Strix::User->new( id => 1 );
13 dpavlin 2
14     template user => sub {
15     html {
16     head {}
17     body {
18     p {'Hello, world wide web!'}
19     pre {
20 dpavlin 8 outs( dump( $user ) );
21 dpavlin 2 }
22     }
23     }
24     };
25    
26     1;

  ViewVC Help
Powered by ViewVC 1.1.26