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

Annotation of /trunk/lib/View.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (hide annotations)
Sun Jun 29 12:55:39 2008 UTC (15 years, 10 months ago) by dpavlin
File size: 332 byte(s)
- create slim server caller in bin for Frey::Server
- restructure view packages
- beginning of rest dispatcher based on Template::Declare
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     use Data::Dump qw/dump/;
9    
10 dpavlin 19 template status => sub {
11     my ( $self ) = @_;
12     p { 'Welcome to Frey' }
13     h1 { 'Available templates' }
14 dpavlin 10 pre {
15 dpavlin 19 { class is 'debug' }
16     outs dump( Template::Declare->templates )
17 dpavlin 2 }
18     };
19    
20     1;

  ViewVC Help
Powered by ViewVC 1.1.26