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