Skip to content

Commit

Permalink
fix joining multiple files in assets
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 13, 2015
1 parent 041fe4e commit 9e53a0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Plack/Middleware/Assets/FileCached.pm
Expand Up @@ -111,10 +111,7 @@ sub _build__asset_files {
my $read_file = $self->read_file;
my @files = @{ $self->files };
my @assets;
my $content = '';
for my $file (@files) {
$content .= $read_file->($file);
}
my $content = join "\n", map { $read_file->($_) } @files;
if ( my $filter = $self->filter ) {
$content = $filter->($content);
}
Expand Down

0 comments on commit 9e53a0c

Please sign in to comment.