convert the resource classes to use the new Resource::Pack api
[gitmo/moose-website.git] / lib / Moose / Website / Resource / Templates.pm
CommitLineData
3cb66fff 1package Moose::Website::Resource::Templates;
2use Moose;
5f71bb62 3use Resource::Pack;
3cb66fff 4
5our $VERSION = '0.01';
6our $AUTHORITY = 'cpan:STEVAN';
7
5f71bb62 8extends 'Resource::Pack::Resource';
9
10has '+name' => (default => 'templates');
11
12sub BUILD {
13 my $self = shift;
14
15 resource $self => as {
16 install_from(Path::Class::File->new(__FILE__)->parent
17 ->subdir('Templates'));
18 dir template_dir => (
19 dir => '.',
20 install_as => '',
21 );
22 };
23}
3cb66fff 24
25__PACKAGE__->meta->make_immutable;
26
5f71bb62 27no Moose; no Resource::Pack; 1;
3cb66fff 28
29__END__
30
31=pod
32
33=head1 NAME
34
35Moose::Website::Resource::Templates - A Moosey solution to this problem
36
37=head1 SYNOPSIS
38
39 use Moose::Website::Resource::Templates;
40
41=head1 DESCRIPTION
42
43=head1 METHODS
44
45=over 4
46
47=item B<>
48
49=back
50
51=head1 BUGS
52
53All complex software has bugs lurking in it, and this module is no
54exception. If you find a bug please either email me, or add the bug
55to cpan-RT.
56
57=head1 AUTHOR
58
59Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
60
61=head1 COPYRIGHT AND LICENSE
62
63Copyright 2010 Infinity Interactive, Inc.
64
65L<http://www.iinteractive.com>
66
67This library is free software; you can redistribute it and/or modify
68it under the same terms as Perl itself.
69
70=cut