/[Frey]/trunk/lib/Strix/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/Strix/View.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (hide annotations)
Sun Jun 29 16:24:41 2008 UTC (15 years, 10 months ago) by dpavlin
File size: 284 byte(s)
another major refactor and version bump [0.01]

- return 404 errors for resources which doesn't exist
- move HTML page wrapper is now in Fray::HTML->page
- dispatch to defined Template::Declare templates
- display available templates on status screen
- NOTE very clean and unobfuscated mapping
- a bits of documentation all over the place
1 dpavlin 19 package Strix::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 23 template 'show-user' => sub {
11     my ( $self, $req, $user ) = @_;
12 dpavlin 19 pre {
13     { class is 'debug' };
14     outs( dump( $user ) );
15     }
16     };
17    
18     1;

  ViewVC Help
Powered by ViewVC 1.1.26