-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from lammel/feature-plugin-nocamelcase
Allow plugin names with uppercase letters to be expanded also in the name
- Loading branch information
Showing
5 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
t/mojolicious/lib/MojoliciousTest/Plugin/UPPERCASETestPlugin.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package MojoliciousTest::Plugin::UPPERCASETestPlugin; | ||
use Mojo::Base 'Mojolicious::Plugin'; | ||
|
||
# "I hate these nerds. Just because I'm stupider than them | ||
# they think they're smarter than me." | ||
sub register { | ||
my ($self, $app) = @_; | ||
|
||
# Add "test_plugin" helper | ||
$app->helper(uppercase_test_plugin => sub {'WELCOME aboard!'}); | ||
} | ||
|
||
1; |