This file contains hidden or 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
| package Minimal::Reproduce; | |
| use Dancer ':syntax'; | |
| use Dancer::Plugin::SimpleCRUD; | |
| our $VERSION = '0.1'; | |
| get '/' => sub { | |
| template 'index'; | |
| }; |
This file contains hidden or 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
| --- a/lib/Dancer/Plugin/SimpleCRUD.pm | |
| +++ b/lib/Dancer/Plugin/SimpleCRUD.pm | |
| @@ -1176,6 +1193,8 @@ sub _ensure_auth { | |
| Dancer::ModuleLoader->load('Dancer::Plugin::Auth::Extensible') | |
| or die "Can't use auth settings without" | |
| . " Dancer::Plugin::Auth::Extensible!"; | |
| + } else { | |
| + return $handler; | |
| } | |
This file contains hidden or 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
| perl -e 'for $year (2013..2113) {$cal = qx{cal $year}; $cal =~ s/\d{4}//; if ($year eq "2013") {$comp_cal = $cal} else { die "cal $year\n" if $comp_cal eq $cal} }' | |
| cal 2019 |
This file contains hidden or 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
| use Dancer; | |
| use MyTop::MyMiddle::MeetingAlerts; | |
| use Plack::Builder; | |
| my $app = sub { | |
| my $env = shift; | |
| my $request = Dancer::Request->new(env=>$env); | |
| Dancer->dance($request); | |
| }; |
This file contains hidden or 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
| # bin/script2.pl | |
| #unnecessary use FindBin; | |
| #unnecessary use Cwd qw/realpath/; | |
| use Dancer ':script'; | |
| =pod | |
| Dancer already knows this | |
| #tell the Dancer where the app lives |
NewerOlder