Mojolicious::Plugin::RenderFile is also optional

master
Daniel Berteaud 9 years ago
parent 58c31af4dd
commit 6ed6c6fe95
  1. 3
      vroom.pl

@ -9,7 +9,6 @@ use Mojolicious::Lite;
use Mojolicious::Plugin::Mail;
use Mojolicious::Plugin::Database;
use Mojolicious::Plugin::StaticCompressor;
use Mojolicious::Plugin::RenderFile;
use Vroom::Constants;
use Vroom::Conf;
use Crypt::SaltedHash;
@ -66,10 +65,12 @@ if ($config->{'etherpad.uri'} =~ m/https?:\/\/.*/ && $config->{'etherpad.api_key
my $excel = eval {
require File::Temp;
require Excel::Writer::XLSX;
require Mojolicious::Plugin::RenderFile;
};
if ($excel){
import File::Temp;
import Excel::Writer::XLSX;
import Mojolicious::Plugin::RenderFile;
$optf->{excel} = 1;
}

Loading…
Cancel
Save