JS-YUI-Loader
view release on metacpan or search on metacpan
lib/JS/YUI/Loader.pm view on Meta::CPAN
elsif (ref $given eq "Path::Resource") {
$cache_class = "JS::YUI::Loader::Cache::URI";
%cache = (uri => $given->uri, dir => $given->dir);
}
else {
$cache_class = "JS::YUI::Loader::Cache::Dir";
%cache = (dir => $given);
}
eval "require $cache_class;" or die $@;
return $cache_class->new(source => $source, %cache);
}
sub _new_cache {
my $class = shift;
my $given = shift;
my $source = shift;
if (my $cache = delete $given->{cache}) {
$given->{cache} = $class->_build_cache($cache, $source);
}
}
sub _new_given_catalog {
my $class = shift;
my $given = $class->_new_given(@_);
my $catalog = $class->_new_catalog($given);
return ($given, $catalog);
}
sub _new_finish {
my $class = shift;
my $given = shift;
my $source = shift;
$class->_new_cache($given, $source);
return $class->new(%$given, source => $source);
}
=head1 YUI component catalog
=head2 animation
Animation Utility (utility)
=head2 autocomplete
AutoComplete Control (widget)
=head2 base
Base CSS Package (css)
=head2 button
Button Control (widget)
=head2 calendar
Calendar Control (widget)
=head2 charts
Charts Control (widget)
=head2 colorpicker
Color Picker Control (widget)
=head2 connection
Connection Manager (utility)
=head2 container
Container Family (widget)
=head2 containercore
Container Core (Module, Overlay) (widget)
=head2 cookie
Cookie Utility (utility)
=head2 datasource
DataSource Utility (utility)
=head2 datatable
DataTable Control (widget)
=head2 dom
Dom Collection (core)
=head2 dragdrop
Drag & Drop Utility (utility)
=head2 editor
Rich Text Editor (widget)
=head2 element
Element Utility (utility)
=head2 event
Event Utility (core)
=head2 fonts
Fonts CSS Package (css)
=head2 get
( run in 0.399 second using v1.01-cache-2.11-cpan-39bf76dae61 )