style infrastructure, moving templates and static files around
[blog.pm.git] / lib / Blog.pm
blobf2e0873d4d88b25307fe736382ba12a3fdd5f441
1 package Blog;
3 use strict;
4 use warnings;
6 use Catalyst::Runtime '5.70';
8 use Catalyst::Authentication::Store::Minimal;
10 use Blog::NewDB;
11 use Blog::Unicode;
13 use Catalyst qw/
14 Unicode
16 ConfigLoader
18 Static::Simple
20 Session
21 Session::Store::FastMmap
22 Session::State::Cookie
24 Authentication
25 Authorization::ACL::Paranoid
27 I18N
29 +Blog::Plugin::Helper
32 our $VERSION = '0.03';
34 __PACKAGE__->config( name => 'Blog', style => 'default' );
36 __PACKAGE__->setup;
38 __PACKAGE__->acl(
39 '/index' => 1,
41 '/user/login' => sub { !shift->user_exists() },
42 '/user/login_openid' => sub { !shift->user_exists() },
43 '/user/logout' => sub { shift->user_exists() },
45 '/post/list' => 1,
46 '/post/view' => 1,
47 '/post/feed' => 1,
48 '/post/archive' => 1,
49 '/post/archive_list' => 1,
51 '/page/view' => 1,
53 '/tag/list' => 1,
54 '/tag/view' => 1,
56 '/comment/add' => 1,
57 '/comment/feed' => 1,
59 '*' => sub { shift->user_in_realm( 'admins' ) }
62 =head1 NAME
64 Blog - Catalyst based application
66 =head1 AUTHOR
68 vti
70 =head1 LICENSE
72 This library is free software, you can redistribute it and/or modify
73 it under the same terms as Perl itself.
75 =cut