/[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 10 - (show annotations)
Sat Jun 28 22:13:05 2008 UTC (15 years, 9 months ago) by dpavlin
File size: 271 byte(s)
cpeanup and spit html generation into own package

- time template generation
- wrap pages in html/head/body
- cleanup server and move logic there
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 template user => sub {
12 my ( $self, $user ) = @_;
13 p {'Hello, world wide web!'}
14 pre {
15 outs( dump( $user ) );
16 }
17 };
18
19 1;

  ViewVC Help
Powered by ViewVC 1.1.26