Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

correct doc for ModuleLoader::load_with_params #867

Merged
merged 1 commit into from

2 participants

@mokko

second attempt to push this PR

@mokko mokko referenced this pull request
Closed

moduleLoader pod #866

@bigpresh bigpresh merged commit e13011e into from
@bigpresh
Owner

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2012
  1. @mokko
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/Dancer/ModuleLoader.pm
View
12 lib/Dancer/ModuleLoader.pm
@@ -155,11 +155,11 @@ Runs a "C<use ModuleYouNeed qw(param1 param2 ...)>".
use Dancer::ModuleLoader;
...
- Dancer::ModuleLoader->load('Something', qw(param1 param2) )
- or die "Couldn't load Something\n";
+ Dancer::ModuleLoader->load_with_params('Something', qw(param1 param2) )
+ or die "Couldn't load Something with param1 and param2\n";
- my ($res, $error) = Dancer::ModuleLoader->load('Something', @params);
- $res or die "Couldn't load Something : '$error'\n";
+ my ($res, $error) = Dancer::ModuleLoader->load_with_params('Something', @params);
+ $res or die "Couldn't load Something with @params: '$error'\n";
Takes in arguments the module name, and optionally parameters to pass to the import internal method.
@@ -213,6 +213,10 @@ Example:
# class == 'Dancer::Template::Tiny
+=head1 SEE ALSO
+
+L<Module::Load>, L<Module::New::Loader>
+
=head1 AUTHOR
Alexis Sukrieh
Something went wrong with that request. Please try again.