| 1 | package Web::Library::UnderscoreJS; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | with qw(Web::Library::Provider Web::Library::SimpleAssets); | |
| 4 | 1 | our $VERSION = '0.04'; | |
| 5 | 0 | ▶ | sub latest_version { '1.5.2' } |
|
Subroutine
latest_version: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 6 | |||
| 7 | 8 | ▶ | sub version_map { |
|
Subroutine
version_map: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | |||
| 9 | # all versions contain the same CSS and JS files | ||
| 10 | 8 | +{ default => { | |
| 11 | css => [], | ||
| 12 | javascript => ['/js/underscore-min.js'] | ||
| 13 | } | ||
| 14 | }; | ||
| 15 | } | ||
| 16 | 1 | 1; | |
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Web::Library::UnderscoreJS - Distribution wrapper around UnderscoreJS | ||
| 23 | |||
| 24 | =head1 SYNOPSIS | ||
| 25 | |||
| 26 | my $library_manager = Web::Library->instance; | ||
| 27 | $library_manager->mount_library({ name => 'UnderscoreJS' }); | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This is a distribution wrapper around Underscore.js. It enables you to include | ||
| 32 | the client-side library in multiple Web application projects with very little | ||
| 33 | effort. See L<Web::Library> for the general concept and how to use it with | ||
| 34 | L<Catalyst>. | ||
| 35 | |||
| 36 | =head1 LIBRARY VERSIONS | ||
| 37 | |||
| 38 | The following versions are available. For each version all included files are | ||
| 39 | listed. Files marked with an asterisk are included in that versions' asset | ||
| 40 | list - see L<Web::Library>'s C<css_link_tags_for()> and C<script_tags_for()> | ||
| 41 | methods for an explanation of the concept. | ||
| 42 | |||
| 43 | =over 4 | ||
| 44 | |||
| 45 | =item Version 1.4.4 | ||
| 46 | =item Version 1.5.0 | ||
| 47 | =item Version 1.5.1 | ||
| 48 | =item Version 1.5.2 (the default) | ||
| 49 | |||
| 50 | * js/underscore-min.js | ||
| 51 | |||
| 52 | =back | ||
| 53 | |||
| 54 | =head1 LIBRARY WEBSITE | ||
| 55 | |||
| 56 | Underscore.js can be found at L<http://underscorejs.org/>. | ||
| 57 | |||
| 58 | =head1 AUTHORS | ||
| 59 | |||
| 60 | The following person is the author of all the files provided in | ||
| 61 | this distribution EXCEPT Underscore.js files found in C<share/>. | ||
| 62 | |||
| 63 | Marcel Gruenauer C<< <marcel@cpan.org> >>, L<http://marcelgruenauer.com> | ||
| 64 | |||
| 65 | =head1 COPYRIGHT AND LICENSE | ||
| 66 | |||
| 67 | Underscore.js is licensed under the MIT license. | ||
| 68 | |||
| 69 | The following copyright notice applies to all files provided in this | ||
| 70 | distribution EXCEPT Underscore.js files found in C<share/>. | ||
| 71 | |||
| 72 | This software is copyright (c) 2013 by Marcel Gruenauer. | ||
| 73 | |||
| 74 | This is free software; you can redistribute it and/or modify it under | ||
| 75 | the same terms as the Perl 5 programming language system itself. | ||
| 76 | |||