Parent Directory | Revision Log
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 | 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 | template 'show-user' => sub { |
11 | my ( $self, $req, $user ) = @_; |
12 | pre { |
13 | { class is 'debug' }; |
14 | outs( dump( $user ) ); |
15 | } |
16 | }; |
17 | |
18 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |