/[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

Contents of /trunk/lib/View.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations)
Sat Jun 28 18:45:00 2008 UTC (15 years, 10 months ago) by dpavlin
File size: 344 byte(s)
load model by primary key
1 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 my $user = Strix::User->new( id => 1 );
13
14 template user => sub {
15 html {
16 head {}
17 body {
18 p {'Hello, world wide web!'}
19 pre {
20 outs( dump( $user ) );
21 }
22 }
23 }
24 };
25
26 1;

  ViewVC Help
Powered by ViewVC 1.1.26