Skip to content

Commit 95bd160

Browse files
authored
Debitrot Mojolicious app
Fixes #1332
1 parent fca615c commit 95bd160

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env perl
22

33
use File::Spec::Functions 'catfile';
4-
use Mojolicious 6.58;
4+
use Mojolicious 7.31;
55
use Mojolicious::Lite;
6-
use Mojo::Util qw/spurt/;
6+
use Mojo::File qw/path/;
77

88
app->static->paths(['html']);
99

@@ -20,8 +20,8 @@
2020
app->log->debug(
2121
"Processing SASS and copying the results over to $style_sheet..."
2222
);
23-
spurt app->asset->processed('app.css')->map("content")->join
24-
=> $style_sheet;
23+
path($style_sheet)->spurt(
24+
app->asset->processed('app.css')->map("content")->join);
2525
app->log->debug('...Done');
2626
}
2727
else {

0 commit comments

Comments
 (0)