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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (show annotations)
Sun Jun 29 12:55:39 2008 UTC (15 years, 9 months ago) by dpavlin
Original Path: trunk/lib/View.pm
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 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 template status => sub {
11 my ( $self ) = @_;
12 p { 'Welcome to Frey' }
13 h1 { 'Available templates' }
14 pre {
15 { class is 'debug' }
16 outs dump( Template::Declare->templates )
17 }
18 };
19
20 1;

  ViewVC Help
Powered by ViewVC 1.1.26